Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • pressmar Friend
    #180174

    Hello,

    i need an little adjustment from the ja-side-news module. I want to use the metadata description as the describtion under the picture and the date. Like the “City-Immobilie in 1a-Lage…” Text in the picture. The textfield i like to use is Beschreibung from Metadata (Picture2)

    Thanks in advance
    Oliver


    1. Screenshot_1
    2. Screenshot_2
    MoonSailor Friend
    #465189

    Hi,

    It’s customize modules and you need change code of modules. You can view “helper.php” file and modify it.

    pressmar Friend
    #465324

    Hi MoonSailer,

    you meant /modules/mod_jasidenews/helper.php right? I see where the php gets the article and the image and everything. And i found where the $title gets trimed e.g. row 542. But i didn’t get the row where i could change the description text form content to meta describtion and which variable that data has.

    I would appriciate your help.

    MoonSailor Friend
    #465400

    Hi pressmar,

    Let me guide you to edit the file “/modules/mod_jasidenews/helper.php”, now I found a simpler way to solve the problem.

    Open file : “templates/ja_puresite/html/mod_jasidenews/default.php” find :
    [PHP]
    <div class=”article-intro”>
    <?php echo $helper->trimString( strip_tags($item->introtext), $descMaxChars); ?>
    </div>
    [/PHP]

    change it to :

    [PHP]
    <div class=”article-intro”>
    <?php echo $helper->trimString( strip_tags($item->metadesc), $descMaxChars); ?>
    </div>
    [/PHP]

    pressmar Friend
    #465454

    Thanks MoonSailor,

    thats exactly what i was searching for.

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

This topic contains 5 replies, has 2 voices, and was last updated by  pressmar 12 years, 2 months ago.

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