Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 19

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 16.12.2004, 00:08   #21 (permalink)
Mamber
 
Join Date: Jul 2004
Posts: 97
yipppie is on a distinguished road
Default Re: Dynamic Title Override

thankyou very very very very much,

is it christmas already, this is a really great hack and has solved all of my problems

cheers for this and merry christmas

yipppie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 16.12.2004, 00:39   #22 (permalink)
Junior Mamber
 
Join Date: Dec 2004
Posts: 31
jema is on a distinguished road
Default Re: Dynamic Title Override

Quote:
Originally Posted by snapadoos
jema could you please clarify what the entire line 24 should look like - thank you!

what I wrote is a new line. sorry I was not clear.

jema
jema is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.12.2004, 00:52   #23 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 2
karz10 is on a distinguished road
Default Re: Dynamic Title Override

hi, I was directed here from mamboserver, and read the entire post...

I just want to clarify, I use (as of an hour ago) SEF Advanced, and I know I can set it to either pull off the content item name, or alias, via selecting short or long urls...

Regarding this hack, which thing am I changing? The name, or the Alias?

So which ever one I'm changing, then I would make that one (name or alias) the long one that I want in the title bar of the browser, and tell SEF Advanced to use the other one as the actual URL, along with whatever the site was using, right?

I'm sorry I'm confused about what is pulling from what, and want to make sure I'm thinking clearly about it before I attempt it...

Regards,

Karsten
karz10 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.12.2004, 05:09   #24 (permalink)
Mamber
 
Join Date: Jul 2004
Posts: 97
yipppie is on a distinguished road
Default Re: Dynamic Title Override

Hi Jema,

I have tried the hack out fully and it does the job nicely, for sections and categories

However, items still cant have long titles as they seem to not use "mitem" in the item list. This is also the same for modules, the long titles are there again.

I have managed to hack the modules so that they show title_alias, however I cant hack the "item List" on the category page to show title_alias and it displays the long title. I suspect the idea of "-" exclusion is a better method than hacking around in modules etc.

Is there any way of excluding everything after the "-" in the title of items (on the category page) and the "latest news" module links.?
yipppie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.12.2004, 15:13   #25 (permalink)
Junior Mamber
 
Join Date: Dec 2004
Posts: 31
jema is on a distinguished road
Default Re: Dynamic Title Override

Quote:
Originally Posted by yipppie
Hi Jema,

I have tried the hack out fully and it does the job nicely, for sections and categories

However, items still cant have long titles as they seem to not use "mitem" in the item list. This is also the same for modules, the long titles are there again.

I have managed to hack the modules so that they show title_alias, however I cant hack the "item List" on the category page to show title_alias and it displays the long title. I suspect the idea of "-" exclusion is a better method than hacking around in modules etc.

Is there any way of excluding everything after the "-" in the title of items (on the category page) and the "latest news" module links.?

Can you provide me with a couple of links and an idiots guide to what you mean?

This is my latest news page:

http://www.downsizer.net/The_News/Latest_News/

are you saying on this page under "Item Title" you would want to see:

Real Christmas Spirit

and not:

Real Christmas Spirit - Charity Fund instead....

Not sure what you mean by the categories page?


jema
jema is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.12.2004, 16:24   #26 (permalink)
Mamber
 
Join Date: Jul 2004
Posts: 97
yipppie is on a distinguished road
Default Re: Dynamic Title Override

Hi Jema,

You have hit the nail right on the head.

That is exactly what I am looking for. I cant seem to get rid of the long titles of my items in that list on the category page.

I think this would require me to hack content.html.php but im not sure what im doing.

This is the same for modules, modules display the long titles as well. However I can hack these if needed to use title_alias, so i am not too bothered about modules, but would be really happy if i could get the modules to use this functionality without hacking.

Thanks v much for you hellp so far, would be really grateful if you have a solution for this.

yipppie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.12.2004, 16:42   #27 (permalink)
Junior Mamber
 
Join Date: Dec 2004
Posts: 31
jema is on a distinguished road
Default Re: Dynamic Title Override

content.html.php

line 267:

is

<?php echo $row->title; ?>


replace withl:

<?php echo strtok($row->title,"-"); ?>


So anywhere else?

jema
jema is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.12.2004, 17:24   #28 (permalink)
Mamber
 
Join Date: Jul 2004
Posts: 97
yipppie is on a distinguished road
Default Re: Dynamic Title Override

If possible would be great to have the modules latest news and most read to use the short title as well. Could it just be the case of copying the same code for content.html.php into mod_mostread.php

Thank u so much for your help. you have saved me so much time and hassle.
yipppie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.12.2004, 17:27   #29 (permalink)
Junior Mamber
 
Join Date: Dec 2004
Posts: 31
jema is on a distinguished road
Default Re: Dynamic Title Override

Quote:
Originally Posted by yipppie
If possible would be great to have the modules latest news and most read to use the short title as well. Could it just be the case of copying the same code for content.html.php into mod_mostread.php

Thank u so much for your help. you have saved me so much time and hassle.
It is going to be something like that. I'm diving out now, but if you don't post the line by the time I come back, I will take a look.

jema
jema is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.12.2004, 18:43   #30 (permalink)
Junior Mamber
 
Join Date: Dec 2004
Posts: 31
jema is on a distinguished road
Default Re: Dynamic Title Override

Looks like line 48 of mos_mostread.php

I guess you can figure out the change needed?

jema
jema is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide item's title MBaas Mambo 4.5.1 'How Do I' Questions 7 16.05.2005 00:06
Dynamic Page Title not working divamissx Mambo 4.5.1 'How Do I' Questions 4 03.02.2005 02:51
Page Title Bugs??? swalian Mambo 4.5.1 Bugs 2 30.11.2004 18:42
Custom Page Title dezomat Mambo 4.5 'How Do I' Questions 7 20.09.2004 02:27
How to add the content title into the web site title? gdrak Mambo 4.5 'How Do I' Questions 3 21.05.2004 12:38


All times are GMT +2. The time now is 12:49.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.