Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • paoloci Friend
    #204713

    I need to know if is possible to leave the original formatting of on article also in blog view.
    For example:
    I have in the article some rules in red
    qwerstgdufjuh
    tyehyfgdygl
    If I go in blog view the formatting is standard.. I want remain the same of the article in colour and dimension.

    Thanks

    Adam M Moderator
    #563398

    Hi @paoloci,

    Could you please provide a screenshot with real content in your site so I can assist you better ?

    paoloci Friend
    #563414

    Yes thanks
    the article
    http://catechesi.diocesifrosinone.it/sussidi/quaresima/43-sussidi-quinta-domenica-di-quaresima-b-2015.html
    have the text inside in purple

    but in home (blog view) receive ths css information to have the same style for all the article
    http://catechesi.diocesifrosinone.it/

    where I must change the css for the home every article with his own color?


    1. catechesi-jart
    2. catechesi-jart2
    Adam M Moderator
    #563533

    Hi @paoloci,

    Thanks for the screenshot and your clarification. I discussed with development team about this but the answer is by default, Joomla! will strip all HTML tags of intro text. Therefore in order to change this behavior, you will have to modify the Joomla! core function and it’s not recommended as the result might lead to error with another extension.

    paoloci Friend
    #563538

    Partially solved with extended classes..
    But I do not understand when you say
    ——————–
    but the answer is by default, Joomla! will strip all HTML tags of intro text.
    ——————–
    when I use every template and an article have a format for color (for example red) I see red also in home page.
    It change only on JaWall..
    for example this site use two template joomlart
    http://www.orientecristiano.it
    in home use ja_fubix
    for the other pages jawall.
    If you see the home I have formatted the first part of the text in #800000 for the article
    “IRAQ – Il Patriarca caldeo..”
    I see this normally in home
    but if I go in Jawall in format blog
    this color is not present
    http://www.orientecristiano.it/all-news/rassegna-stampa-view.html

    So, in which way this depend from Joomla! ?

    Adam M Moderator
    #563719

    Hi @paoloci,

    Try open file root_foldertemplatesja_wallhtmlcom_contentcategoryblog_item.php and look for this code :

    <?php echo $introtext; ?>

    comment it out and update as below :

    <?php //echo $introtext; ?>
    <?php echo $this->item->introtext; ?>

    paoloci Friend
    #563751

    Thanks
    but repeat the image that is in the article
    see below
    http://www.orientecristiano.it/all-news/rassegna-stampa-view.html
    please see the attachment

    As you see the image is repeated again. It’s not a solution.


    1. oc-problem-in-blog-view
    Adam M Moderator
    #563853

    Hi @paoloci,

    If you open an article and insert a readmore to split the text, the content above the reamore is treated as intro text. So please open appropriate article and make sure that you insert the readmore correctly.

    paoloci Friend
    #564697

    Thanks for answer.

    But I think is not a solution.

    Usually an article have this construction:

    IMAGE text-text-text
    text-text-text-text-text-text
    text-text-text-text-text-text
    readmore——————————-
    text-text-text-text-text-text
    text-text-text-text-text-text-text
    text-text-text-text-text-text.

    And is visible correctly in home of every template with his format color, cursive, etc.

    But with your code I must do this construction

    text-text-text
    text-text-text-text-text-text
    text-text-text-text-text-text
    readmore——————————-
    IMAGE text-text-text-text-text-text
    text-text-text-text-text-text-text

    So this not solve the problem.

    Adam M Moderator
    #564788

    Hi @paoloci,

    Actually the structure should stay the same as you mentioned :

    IMAGE text-text-text
    text-text-text-text-text-text
    text-text-text-text-text-text
    readmore-------------------------------
    text-text-text-text-text-text
    text-text-text-text-text-text-text
    text-text-text-text-text-text.

    please use this and let me know if there’s a problem, we will adjust the code if necessary then.

    paoloci Friend
    #564928

    Hi thanks for answer
    for have an acceptable solution
    I must do so:
    1 – overwrite this
    <?php echo $introtext; ?>
    with
    <?php //echo $introtext; ?>
    <?php echo $this->item->introtext; ?>

    2 – set autodetectimage on No

    If I leave on yes
    the image is duplicate like
    here the image below


    1. 2015-03-28_195544
    2. oc-problem-in-blog-view
    Adam M Moderator
    #565043

    Hi @paoloci,

    In this case, please revert previous change and use the code :

    <?php echo $introtext; ?>

    then open file root_foldertemplatesja_walltemplate_tools.php and look for this code :

    static $regex = '#<p[^>]*>(.*)</p>#i';
    static $allowtag = '<a><b><strong><br>';

    and update as below :

    static $regex = '#<div[^>]*>(.*)</div>#i';
    static $allowtag = '<a><b><strong><br><p>';

    paoloci Friend
    #565092

    Thanks for answer
    I have done these operations:

    1 – revert code from previous change

    <?php echo $introtext; ?>

    2 – Find in root_foldertemplatesja_walltemplate_tools.php the code

    static $regex = '#<p[^>]*>(.*)</p>#i';
    static $allowtag = '<a><b><strong><br>';

    and update with

    static $regex = '#<div[^>]*>(.*)</div>#i';
    static $allowtag = '<a><b><strong><br><p>';

    3 – switch on “yes” autodetectimage..

    nothing is change. Cache joomla clean, cache browser clean.

    As you see this article have first words in cursive in #800000
    http://www.orientecristiano.it/all-news/santo-padre/9129-cordoglio-del-papa-per-la-morte-di-mar-dinkha-iv.html
    in blog view is the same of the original situation: the format of the text in cursive and in #800000
    is not present
    http://www.orientecristiano.it/all-news/rassegna-stampa-view.html

    Thanks for attention

    Adam M Moderator
    #565146

    Hi @paoloci,

    Please provide a temporary admin account / FTP account via private reply, I will recheck this matter for you.

    paoloci Friend
    #565163

    Data send in PM.
    Thanks

Viewing 15 posts - 1 through 15 (of 27 total)

This topic contains 27 replies, has 2 voices, and was last updated by  paoloci 9 years, 7 months ago.

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