Re: Page Title in 4.2
Quote:
When editing product: Quote:
When editing static page: Quote:
I also noticed that when updating category it says its updated, but the page title doesn't show on customer pages nor when editing the category in admin panel. |
Re: Page Title in 4.2
Non of this happens for me. Actually after your message I did all of this on my test site and got no errors. Everything works. Do you have any other modifications that might cause this? Are you sure you didn't make errors when making changes to php files?
|
Re: Page Title in 4.2
Quote:
I got it to work, instead of pasting it after: <tr> <td height="10" class="FormButton" nowrap="nowrap" valign="top">{$lng.lbl_page_name}:</td> <td><font class="Star">*</font></td> <td><input type="text" name="pagetitle" value="{$page_data.title|default:"$default_page_ti tle"}" size="45" {if $config.SEO.clean_urls_enabled eq "Y"}onchange="javascript: if (this.form.clean_url.value == '') copy_clean_url(this, this.form.clean_url)"{/if} /></td> </tr> I removed the above and pasted the new code, ofcourse x-cart cant read the names etc. then. My fault, sorry! Thanks for the mod, works fine now :) |
Re: Page Title in 4.2
Glad you got it working
|
Re: Page Title in 4.2
Anyone for 4.1.9. ?Any help !!!
Thanks to all. |
Re: Page Title in 4.2
I am afraid you either have to pay someone to try fit this mod in 4.1.9 or go with commercial mod which will probably cost the same so...
|
Re: Page Title in 4.2
I am testing 4.3 beta and QT added some idea from you Steve. Good job anyway!
|
Re: Page Title in 4.2
I knew they will have to add this feature but to actually borrow this code wow means I am on the right track. Maybe xcart should have "credits" section in admin to put all names of ppl which code, ideas or beta testing they used :)
|
Re: Page Title in 4.2
Here is another possible solution:
Passing variable title to header template When the majority of your templates use the same headers and footers, it is common to split those out into their own templates and {include} them. But what if the header needs to have a different title, depending on what page you are coming from? You can pass the title to the header as an attribute when it is included. Passing the title variable to the header template mainpage.tpl - When the main page is drawn, the title of ⌠Main Page■ is passed to the header.tpl, and will subsequently be used as the title. Code:
{include file='header.tpl' title='Main Page'} archives.tpl - When the archives page is drawn, the title will be ⌠Archives■. Notice in the archive example, we are using a variable from the archives_page.conf file instead of a hard coded variable. Code:
{config_load file='archive_page.conf'} header.tpl - Notice that ⌠Smarty News■ is printed if the $title variable is not set, using the default variable modifier. Code:
<html> This is all information that can be found in the Smarty docs. |
Re: Page Title in 4.2
I get the following error when trying to modify any category:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/*edit*/public_html/*edit*.com/admin/category_modify.php on line 199 Here's what the file in question looks like, starting at line 189: Code:
# Update general data of category Line 199 is the added Code:
"category_page_title" => $category_page_title Any suggestions? |
All times are GMT -8. The time now is 03:46 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.