-
AuthorPosts
-
paoloci Friend
paoloci
- Join date:
- March 2006
- Posts:
- 72
- Downloads:
- 76
- Uploads:
- 14
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
March 16, 2015 at 10:28 am #204713I 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 ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
paoloci Friendpaoloci
- Join date:
- March 2006
- Posts:
- 72
- Downloads:
- 76
- Uploads:
- 14
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
March 17, 2015 at 11:24 am #563414Yes thanks
the article
http://catechesi.diocesifrosinone.it/sussidi/quaresima/43-sussidi-quinta-domenica-di-quaresima-b-2015.html
have the text inside in purplebut 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?
-
Adam M Moderator
Adam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
March 18, 2015 at 7:48 am #563533Hi @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 Friendpaoloci
- Join date:
- March 2006
- Posts:
- 72
- Downloads:
- 76
- Uploads:
- 14
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
March 18, 2015 at 9:02 am #563538Partially 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.htmlSo, in which way this depend from Joomla! ?
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
paoloci Friendpaoloci
- Join date:
- March 2006
- Posts:
- 72
- Downloads:
- 76
- Uploads:
- 14
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
March 19, 2015 at 11:03 am #563751Thanks
but repeat the image that is in the article
see below
http://www.orientecristiano.it/all-news/rassegna-stampa-view.html
please see the attachmentAs you see the image is repeated again. It’s not a solution.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
paoloci Friendpaoloci
- Join date:
- March 2006
- Posts:
- 72
- Downloads:
- 76
- Uploads:
- 14
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
March 26, 2015 at 1:12 pm #564697Thanks 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-textSo this not solve the problem.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
March 27, 2015 at 4:12 am #564788Hi @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 Friendpaoloci
- Join date:
- March 2006
- Posts:
- 72
- Downloads:
- 76
- Uploads:
- 14
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
March 28, 2015 at 7:00 pm #564928Hi 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-
Adam M Moderator
Adam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
March 30, 2015 at 9:06 am #565043Hi @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 Friendpaoloci
- Join date:
- March 2006
- Posts:
- 72
- Downloads:
- 76
- Uploads:
- 14
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
March 30, 2015 at 2:36 pm #565092Thanks 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.htmlThanks for attention
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
-
AuthorPosts
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
Jump to forum