| | | |  |  | |  |
16.12.2004, 00:08
|
#21 (permalink)
| | Mamber
Join Date: Jul 2004
Posts: 97
| Re: Dynamic Title Override |
| |
16.12.2004, 00:39
|
#22 (permalink)
| | Junior Mamber
Join Date: Dec 2004
Posts: 31
| 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 |
| |
16.12.2004, 00:52
|
#23 (permalink)
| | Baby Mamber
Join Date: Dec 2004
Posts: 2
| 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 |
| |
16.12.2004, 05:09
|
#24 (permalink)
| | Mamber
Join Date: Jul 2004
Posts: 97
| 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.? |
| |
16.12.2004, 15:13
|
#25 (permalink)
| | Junior Mamber
Join Date: Dec 2004
Posts: 31
| 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 |
| |
16.12.2004, 16:24
|
#26 (permalink)
| | Mamber
Join Date: Jul 2004
Posts: 97
| 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.    |
| |
16.12.2004, 16:42
|
#27 (permalink)
| | Junior Mamber
Join Date: Dec 2004
Posts: 31
| 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 |
| |
16.12.2004, 17:24
|
#28 (permalink)
| | Mamber
Join Date: Jul 2004
Posts: 97
| 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. |
| |
16.12.2004, 17:27
|
#29 (permalink)
| | Junior Mamber
Join Date: Dec 2004
Posts: 31
| 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 |
| |
16.12.2004, 18:43
|
#30 (permalink)
| | Junior Mamber
Join Date: Dec 2004
Posts: 31
| Re: Dynamic Title Override Looks like line 48 of mos_mostread.php
I guess you can figure out the change needed?
jema |
| | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT +2. The time now is 12:49. | | | |