-
AuthorPosts
-
ilhl Friend
ilhl
- Join date:
- June 2015
- Posts:
- 147
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 35
- Thanked:
- 6 times in 1 posts
June 29, 2015 at 4:14 pm #208013It seems that the Carousel module takes the articles from the assigned category and just sets the article’s title as the title of the carousel’s step as well as the beginning of the text as short text in carousel.
Is it possible to adjust that? For example to make some JA Extra Fields at the article and name it for example “Carousel Title” and “Carousel Short Text” and adjust the carousel module, that it would get the data from these fields?
ilhl Friendilhl
- Join date:
- June 2015
- Posts:
- 147
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 35
- Thanked:
- 6 times in 1 posts
June 29, 2015 at 5:30 pm #575827Ok, i think i’ve got at least a workaround for my intention.
ilhl Friendilhl
- Join date:
- June 2015
- Posts:
- 147
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 35
- Thanked:
- 6 times in 1 posts
July 14, 2015 at 7:31 am #577305my problem was, that i wanted carousel title be different from the article’s title and the carousel short text to be different from the beginning of the article’s text, cause my articles are finished and they are good as they are..and the carousel texts should be more striking..
so my idea was to make extra articles for carousel module, switch “read more” in the module off and instead of that set a link to the “correct artcle” in the text of the “carousel article”.. it works ofc, but i have to switch “link title” off also, because otherwise the title would get the user to the “carousel article”, what i don’t want..
so another idea now is to switch displaying of the article title in the carousel module off and set a <p> in the text with a link, so it would look like title, but link to the “correct” article..the question is: is it possible to switch off the displaying of article’s title in the carousel module?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 15, 2015 at 7:36 am #577471If you want to switch off the displaying of article’s title in the carousel module, you want to change this way
+ Open templates/ja_nuevo/html/mod_articles_category/carousel.php file, find and remove <?php echo $item->title; ?> line 57 and 65
ilhl Friendilhl
- Join date:
- June 2015
- Posts:
- 147
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 35
- Thanked:
- 6 times in 1 posts
July 15, 2015 at 12:36 pm #577492could it be, that the carousel igrnores <p> tags in the article? i mean it definitely does, but is it wanted like that or is it a bug?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 16, 2015 at 2:36 am #577563<em>@ilhl 483018 wrote:</em><blockquote>could it be, that the carousel igrnores <p> tags in the article? i mean it definitely does, but is it wanted like that or is it a bug?</blockquote>
In this case, maybe you have to remove from templates/ja_nuevo/html/mod_articles_category/carousel.php file with my red mark below
<p class="mod-articles-category-introtext">
<?php echo $item->displayIntrotext; ?>
</p><p class="mod-articles-category-readmore">
<a class="mod-articles-category-title btn btn-link <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
<?php if ($item->params->get('access-view')== FALSE) :
echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE');
elseif ($readmore = $item->alternative_readmore) :
echo $readmore;
echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit'));
elseif ($params->get('show_readmore_title', 0) == 0) :
echo JText::sprintf('TPL_MOD_ARTICLES_CATEGORY_READ_MORE_TITLE');
else :
echo JText::_('TPL_MOD_ARTICLES_CATEGORY_READ_MORE');
echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit'));
endif; ?>
</a>
</p>
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 16, 2015 at 2:36 am #643860<em>@ilhl 483018 wrote:</em><blockquote>could it be, that the carousel igrnores <p> tags in the article? i mean it definitely does, but is it wanted like that or is it a bug?</blockquote>
In this case, maybe you have to remove from templates/ja_nuevo/html/mod_articles_category/carousel.php file with my red mark below
<p class="mod-articles-category-introtext">
<?php echo $item->displayIntrotext; ?>
</p><p class="mod-articles-category-readmore">
<a class="mod-articles-category-title btn btn-link <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
<?php if ($item->params->get('access-view')== FALSE) :
echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE');
elseif ($readmore = $item->alternative_readmore) :
echo $readmore;
echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit'));
elseif ($params->get('show_readmore_title', 0) == 0) :
echo JText::sprintf('TPL_MOD_ARTICLES_CATEGORY_READ_MORE_TITLE');
else :
echo JText::_('TPL_MOD_ARTICLES_CATEGORY_READ_MORE');
echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit'));
endif; ?>
</a>
</p>
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 16, 2015 at 2:36 am #742507<em>@ilhl 483018 wrote:</em><blockquote>could it be, that the carousel igrnores <p> tags in the article? i mean it definitely does, but is it wanted like that or is it a bug?</blockquote>
In this case, maybe you have to remove from templates/ja_nuevo/html/mod_articles_category/carousel.php file with my red mark below
<p class="mod-articles-category-introtext">
<?php echo $item->displayIntrotext; ?>
</p><p class="mod-articles-category-readmore">
<a class="mod-articles-category-title btn btn-link <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
<?php if ($item->params->get('access-view')== FALSE) :
echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE');
elseif ($readmore = $item->alternative_readmore) :
echo $readmore;
echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit'));
elseif ($params->get('show_readmore_title', 0) == 0) :
echo JText::sprintf('TPL_MOD_ARTICLES_CATEGORY_READ_MORE_TITLE');
else :
echo JText::_('TPL_MOD_ARTICLES_CATEGORY_READ_MORE');
echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit'));
endif; ?>
</a>
</p>
ilhl Friendilhl
- Join date:
- June 2015
- Posts:
- 147
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 35
- Thanked:
- 6 times in 1 posts
July 17, 2015 at 9:30 am #577798i only asked, because i wanted to have it exactly like in demo.. i mean it should look like that but it should link to another articles (as i wrote above).. if i delete this tags in the php file, then (to keep the same style) i would have to set the
<p class=”mod-articles-category-introtext”> </p> around my text in the article’s body, right?and the tag <p class=”mod-articles-category-readmore”> – i think i can keep that, because i switched the “readmore”-option off for that articles anyway..right?
ilhl Friendilhl
- Join date:
- June 2015
- Posts:
- 147
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 35
- Thanked:
- 6 times in 1 posts
July 17, 2015 at 9:30 am #644092i only asked, because i wanted to have it exactly like in demo.. i mean it should look like that but it should link to another articles (as i wrote above).. if i delete this tags in the php file, then (to keep the same style) i would have to set the
<p class=”mod-articles-category-introtext”> </p> around my text in the article’s body, right?and the tag <p class=”mod-articles-category-readmore”> – i think i can keep that, because i switched the “readmore”-option off for that articles anyway..right?
ilhl Friendilhl
- Join date:
- June 2015
- Posts:
- 147
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 35
- Thanked:
- 6 times in 1 posts
July 17, 2015 at 9:30 am #742727i only asked, because i wanted to have it exactly like in demo.. i mean it should look like that but it should link to another articles (as i wrote above).. if i delete this tags in the php file, then (to keep the same style) i would have to set the
<p class=”mod-articles-category-introtext”> </p> around my text in the article’s body, right?and the tag <p class=”mod-articles-category-readmore”> – i think i can keep that, because i switched the “readmore”-option off for that articles anyway..right?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 17, 2015 at 9:37 am #577802If you want to keep the same as our demo and change the link to other article you can change from templates/ja_nuevo/html/mod_articles_category/carousel.php file with
<p class="mod-articles-category-introtext">
<?php echo $item->displayIntrotext; ?>
</p>
and <?php echo $item->displayIntrotext; ?> is text in the article’s body
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 17, 2015 at 9:37 am #644096If you want to keep the same as our demo and change the link to other article you can change from templates/ja_nuevo/html/mod_articles_category/carousel.php file with
<p class="mod-articles-category-introtext">
<?php echo $item->displayIntrotext; ?>
</p>
and <?php echo $item->displayIntrotext; ?> is text in the article’s body
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 17, 2015 at 9:37 am #742731If you want to keep the same as our demo and change the link to other article you can change from templates/ja_nuevo/html/mod_articles_category/carousel.php file with
<p class="mod-articles-category-introtext">
<?php echo $item->displayIntrotext; ?>
</p>
and <?php echo $item->displayIntrotext; ?> is text in the article’s body
ilhl Friendilhl
- Join date:
- June 2015
- Posts:
- 147
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 35
- Thanked:
- 6 times in 1 posts
July 17, 2015 at 9:55 am #577810<em>@Ninja Lead 483496 wrote:</em><blockquote>If you want to keep the same as our demo and change the link to other article you can change from templates/ja_nuevo/html/mod_articles_category/carousel.php file with
<p class="mod-articles-category-introtext">
<?php echo $item->displayIntrotext; ?>
</p>
and <?php echo $item->displayIntrotext; ?> is text in the article’s body</blockquote>
sorry, maybe i don’t get it or i miss something.. and i don’t have access to the Server for the next couple of hours, so i can’t check it.. but if i look on your post #6, then it Looks for me as it is the same code, that is already in the php?
i understood it that way, that i should replace the code of #6 with code of #8.. but maybe you meant it that way, that i should adjust the code of #8 as i need it? well, then i better let it as it is, cause i’m not that good coder and it works right now.. ok the readmore-link comes directly after the text (i wanted to have it in the next line like in demo) and the title is not linked, but.. it’s not that important..i can accept that, before trying coding and smashing the whole thing 😀
AuthorPostsThis topic contains 24 replies, has 2 voices, and was last updated by ilhl 9 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum