-
AuthorPosts
-
pressmar Friend
pressmar
- Join date:
- March 2008
- Posts:
- 119
- Downloads:
- 14
- Uploads:
- 51
- Thanks:
- 25
- Thanked:
- 4 times in 1 posts
August 23, 2012 at 3:46 pm #180174Hello,
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-
MoonSailor Friend
MoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
August 24, 2012 at 9:13 am #465189Hi,
It’s customize modules and you need change code of modules. You can view “helper.php” file and modify it.
pressmar Friendpressmar
- Join date:
- March 2008
- Posts:
- 119
- Downloads:
- 14
- Uploads:
- 51
- Thanks:
- 25
- Thanked:
- 4 times in 1 posts
August 25, 2012 at 11:50 am #465324Hi 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 FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
August 27, 2012 at 2:45 am #465400Hi 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]1 user says Thank You to MoonSailor for this useful post
-
AuthorPosts
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
Jump to forum