test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • habbelle Friend
    #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
    habbelle

    scotty Friend
    #284735

    Can you rephrase the question please? I don’t understand what you are asking.

    habbelle Friend
    #284738

    Hi 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
    habbelle

    PS: If you not understand tell me please, than i will search the web for a screenshot

    scotty Friend
    #284743

    Ahh yes I understand now. I would say that would be fairly easy to do. I don’t have time now but I’ll have a look at it this evening and get back to you.

    habbelle Friend
    #284747

    Wow really great! THANKS for that 🙂 🙂 🙂

    I am learning php at the moment…but my skilly are not sooo good…perhaps in the future 🙂

    Regards
    Markus

    scotty Friend
    #284751

    Yea 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 Friend
    #284793

    Hi 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

    scotty Friend
    #284795

    and you too Jessica thanks.

    ehh yes they could… never thought of that :-*. But my way will do it automatically :D.

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 3 voices, and was last updated by  scotty 15 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum