-
AuthorPosts
-
January 5, 2009 at 1:11 pm #136739
Hey together,
I want to repeat the heading in the readmore link. Does anybody know how I can do this without a seo extension?
Would be great to get an answer 🙂
Regards
habbellescotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
January 5, 2009 at 2:09 pm #284738Hi Scotty,
sorry for my bad english 🙂 I try it again haha :
content e.g.
Obama is President
content content content content cotent content content content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent content…….-> READMORE
So this above is the normal Readmore Way, but I will it like this
Obama is President
content content content content cotent content content content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent contentcontent content content content cotent content…….
->READMORE “Obama is President”I hope you can understand? 🙂 I want to repeat the heading in the readmore link.
Regards
habbellePS: If you not understand tell me please, than i will search the web for a screenshot
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
January 5, 2009 at 3:49 pm #284747Wow really great! THANKS for that 🙂 🙂 🙂
I am learning php at the moment…but my skilly are not sooo good…perhaps in the future 🙂
Regards
Markusscotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
January 5, 2009 at 4:54 pm #284751Yea I’m a n00b when it comes to PHP too. But I managed it…
Open components/com_content/views/frontpage/tmpl/default_item.php and find on line 134…
[php] <a href=”<?php echo $this->item->readmore_link; ?>” class=”readon<?php echo $this->item->params->get(‘pageclass_sfx’); ?>”>
<?php if ($this->item->readmore_register) :
echo JText::_(‘Register to read more…’);
elseif ($readmore = $this->item->params->get(‘readmore’)) :
echo $readmore;
else :
echo JText::sprintf(‘Read more…’);
endif; ?></a>[/php]…and REPLACE with…[php]<a href=”<?php echo $this->item->readmore_link; ?>” title=”<?php echo $this->item->title; ?>” class=”readon<?php echo $this->item->params->get(‘pageclass_sfx’); ?>”>
<?php if ($this->item->readmore_register) : ?>
<?php echo JText::_(‘Register to read more…’); ?>
<?php else : ?>
<?php echo JText::_(‘Read more on ‘); ?><i>”<?php echo $this->escape($this->item->title); ?></i>”
<?php endif; ?>
</a>[/php]Let me know how you get on.jwellman Friendjwellman
- Join date:
- April 2008
- Posts:
- 543
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 115
- Thanked:
- 59 times in 21 posts
January 5, 2009 at 10:41 pm #284793Hi Scotty… Hope your holidays were great! 🙂
Can’t they just change their text in the read more area after each article is written? Screenshot
Sorry in advance if I’m totally confused on the situation… it wouldn’t be the first time. :p -
AuthorPosts
This topic contains 8 replies, has 3 voices, and was last updated by scotty 15 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum