Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • troy Friend
    #151243

    I set some page breaks in an article… if the article page break title/alt contains an ‘&’ (ampersand)… it is rendered as & in the page title… looks like this:

    This Is My Awesome Article Title – The Article Title & A Page Break

    Article Index:
    – This Is My Awesome Article
    – The Article Title & A Page break

    note: the ampersand though it appears normal in the article index… is rendered as & in the page title

    I tried editing in HTML source editor… however when I press update… the WYSIWYG editor converts it back to & … How can I prevent this from happening?

    John Wesley Brett Moderator
    #344358

    Give this a try:

    [FONT=”Arial Black”]Goto: components/com_content/content.html.php[/FONT],

    Replace the following line in function showCategories():


    $row->name = htmlspecialchars( stripslashes( ampReplace( $row->name ) ), ENT_QUOTES );

    with

    $row->name = ampReplace( stripslashes( htmlspecialchars( $row->name, ENT_QUOTES ) ) );

    Let me know if this works for you.
    John.

    troy Friend
    #344374

    cannot locate file > components/com_content/content.html.php

    the nearest named file is content.php however it does not contain the suggested code… fyi – i’m using template JA Seleni

    any ideas?

    Saguaros Moderator
    #344597

    Dear troy!

    You open the file: templates/ja_seleni/html/com_content/article/default.php and find the following code at line 52
    [PHP]<?php echo $this->escape(isset($this->article->page_title)?$this->article->page_title:$this->article->title); ?>[/PHP]

    replace:
    [PHP]<?php echo (isset($this->article->page_title)?$this->article->page_title:$this->article->title); ?>[/PHP]

    Good luck

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

This topic contains 4 replies, has 3 voices, and was last updated by  Saguaros 14 years, 6 months ago.

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