Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Modify Titles for jQuery UI Dialogs

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-26-2011, 04:56 AM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Modify Titles for jQuery UI Dialogs

Hi All,

I'm trying to figure out how to modify the "title" header text in the jQuery UI dialogs used across the site (for things like the login box, modify address box and product option edit box). It seems to just take the browser title and stuff it into the title of the box, which doesn't make much sense.

If anyone knows how to modify the headers in the dialogs that would be amazing!
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote
  #2  
Old 11-03-2011, 05:18 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Modify Titles for jQuery UI Dialogs

You should check the "include/templater/plugins/function.get_title.php" script and make necessary adjustments there.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 11-03-2011, 06:20 AM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Re: Modify Titles for jQuery UI Dialogs

I think i've figured out the issue. The dialog for the "edit options" function on the cart page seems to inherit the "Default Site Title Tag" if it's set in the admin. If it's not, it correctly is set to "edit :: product name".

I definitely want to be able to set the default title for the homepage though... so how do I do so without it getting inherited by the dialogs as well?

Let me know. Thanks so much!
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote
  #4  
Old 11-03-2011, 06:27 AM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Re: Modify Titles for jQuery UI Dialogs

I think I figured out a workaround..

Rather than setting a "Default Site Title", I set the homepage title in service_head.tpl since the homepage was the only page I wanted to receive this default title:

HTML Code:
{if $main eq "catalog" && $current_category.category eq ""} <title>HOMEPAGE TITLE GOES HERE</title> {elseif $page_data.metatitle} <title>{$page_data.metatitle}</title> ...

Now, the jQuery dialogs stop inheriting that default title and have their correct titles.

I still think, however, that setting the default site title should not be inherited by jQuery dialogs across the site!
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:59 PM.

   

 
X-Cart forums © 2001-2020