Hi All,
I am new to CMS but have been able to successfully convert the look of the system to match the look of my site. The only items that I would like to change are the contents of the XML tags - specifically the '{search}' tag. Where are these definitions stored?
It does not appear that editing these modules is a standard feature (or is it??) but I am assuming that I can edit the .php files that contain the code for them. Can anyone point me in the right direction? Thanks in advance...
Editing the XML Tags
Re: Editing the XML Tags
Hi and welcome to cmsms world.
if you are using the latest version and want to change how {search} is displayed you can do it in extensions -> search -> search template tab.
also check the search module help, you can change some of the output by using parameters like "(optional) submit="Submit" - Text to place into the submit button"
all modules use smarty as template engine to render the html and most modules have admin pages to change these templates. Modules that dont have editing option in their admin pages have usually have a templates folder in the module directory where you can do changes also.
usually you don't have to edit the php files.
hope this helps.
if you are using the latest version and want to change how {search} is displayed you can do it in extensions -> search -> search template tab.
also check the search module help, you can change some of the output by using parameters like "(optional) submit="Submit" - Text to place into the submit button"
all modules use smarty as template engine to render the html and most modules have admin pages to change these templates. Modules that dont have editing option in their admin pages have usually have a templates folder in the module directory where you can do changes also.
usually you don't have to edit the php files.
hope this helps.
-
DiZZ
Re: Editing the XML Tags
Thanks tsw, I knew I must have been overlooking something! I was able to edit the search text & template file, but can I dig deeper and change the definitions for variables such as:
{$inputbox}
{$submitbutton}
Would I need to edit the .php files to handle these? Or is there a place in the backend to take care of this? I swear I have walked through every link, but I may be overlooking something...
{$inputbox}
{$submitbutton}
Would I need to edit the .php files to handle these? Or is there a place in the backend to take care of this? I swear I have walked through every link, but I may be overlooking something...
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Editing the XML Tags
if you want to change the definition of certain smarty variables, then yes you'll have to dig through the php code.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
DiZZ
Re: Editing the XML Tags
Is there one page that contains the variables for the entire CMS? Or are they scattered throughout the code? If you could direct me to a specific page that would be great...

