Problems, need help? Have a tip or advice? Post it here.
8 posts Page 1 of 1
Hello, the beta version has a great option to download a SQL dump. I like the link. Is it possible to change the name of the link to "download backup"
;-) Thanks for couch - I love it for neat sites.
* * * * * * I LOVE COUCH CMS - flexible and straight forward * * * * * *
@chichi

Well the "Download Dump" can be changed. But a WARNING
TRY NOT TO MESS UP WITH THE CODE, YOU DO THIS AT YOUR OWN RISK

Ok so with this said, I will first guide you to the file that actually holds the link for "Download Dump".
(considering that you have not changed the name of the couch folder, in case you have, just replace couch from below with the name of your folder).

Please navigate to:
Code: Select all
couch\theme\_system\


In the "_system" folder you will find 64 items (2 folders, 61 HTML files, 1 PHP file). But you shall be interested in "main.html" alone. Open "main.html" in a text editor of your choice and navigate to
Code: Select all
Line No #58


On this line you will find an anchor (<a>) tag. Defined as:
Code: Select all
<a href="<cms:show k_admin_link />gen_dump.php">Download Dump</a>


Make sure you don't disturb anything else and only replace "Download Dump" with something like "BackUp SQL Data" or something of your choice.

Hit Save. Go to the couch admin panel in your browser and:
1. refresh, if already logged in, and the changes will be reflected
2. after login it will just appear

Again as a caution. These are the system files and are need by CouchCMS to function uninterrupted. So I would request you to not try and change anything except the Words "Download Dump"

Hope you find this reply useful, do let us know if you achieved what you aimed for!

Cheers,
GenXCoders
Image
where innovation meets technology
:lol: :lol: :lol:
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
@genxcoders, You are right about not messing with the core theme files of Couch.
However, v2.0 gives us a safe way of making such changes without having to modify the core files.

It is pretty easy (you can find the details at viewtopic.php?f=5&t=10241#p24680 under 'Theming') -
for this use-case, simply copy the main.html file from 'couch\theme\_system\' into 'couch\theme\sample\'.

Couch will now use the file you placed at the new location instead of the one in '_system' folder. So, effectively, you have overridden the core file without having had to make any changes to it.

You can now tweak the new file as much as you want without the fear of irreversibly breaking some core functionality.

Hope it helps.
Have to agree with @trendoman on this one.
:lol: :lol: :lol:

Would vote for making this a permanent change to the core files.
@KK Sir, thanks i suppose you got why i explained the reason.

@tim and @trendoman: i am very well aware that you guys are great programmers... have worked with trendoman on a few things myself. The reason of the warning message was suggested so that if someone (who is new to CouchCMS) they should beware of what they are doing. Coz the user base is increasing and with i felt that as a part of the couch community it was a must on my part to have a little futuristic overview.

nevertheless i suppose it was a bit too innocent on my part to address a problem faced by a senior member in such a naive way. :lol: :lol: :lol: really loud!!! :D
Image
where innovation meets technology
@genxcoders,
I'm sorry that you misunderstood my meaning. When I said
:lol: :lol: :lol:
I wasn't referring to you at all.

I just think that "Download Dump" is a funny thing to say. That's what I was :lol: ing about.

I meant no disrespect to you in any way. Your answer was very helpful.
@tim, none taken brother... Thanks!
Image
where innovation meets technology
8 posts Page 1 of 1