Justified text in articles?
mishima 144
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Justified text in articles?
Philipp Esselbach
From: -
Editor
0From: -
Just add the <div align="justify"> ... </div> tags in both news_story and news_story_extended
news_story:
news_story_extended:
news_story:
<div align="justify">{$insert['newsstory_story']}</div>
news_story_extended:
<div align="justify">{$insert['newsstory_story']}</div><br />
{$insert['newsstory_advertisement']}
<div align="justify">{$insert['newsstory_extendedstory']}</div>
1 Re: Justified text in articles?
mishima
OP
144
From: -
From: -
hehe works!
How about news too?
How about news too?
1 Re: Justified text in articles?
Philipp Esselbach
From: -
Editor
0From: -
Sorry, should be <div align="justify"> and not <div align="justified">
1 Re: Justified text in articles?
mishima
OP
144
From: -
From: -
This is what my code looks like:
Doesn't seem to do anything!
<!-- Template: articles_pages -->
{$insert['article_toc']}<br />
<h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1>
<h2>Posted by: {$insert['article_author']} ({$insert['article_extra3']}) on: {$insert['article_date']} [ <a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html" rel="nofollow">Print</a> | <a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} comment(s)</a> ]</h2>
<div class="content">{$insert['article_teaserimage']}{$insert['articles_pages_title']}<div align="justified">{$insert['articlepage_text']}</div>{$insert['article_social']}</div>
<br />
Doesn't seem to do anything!
1 Re: Justified text in articles?
Philipp Esselbach
From: -
Editor
0From: -
I see. You need to change the following template: articles_pages
Find: {$insert['articlepage_text']}
and replace it with: <div align="justified">{$insert['articlepage_text']}</div>
Find: {$insert['articlepage_text']}
<div class="content">{$insert['article_teaserimage']}{$insert['articles_pages_title']}{$insert['articlepage_text']}{$insert['article_toc']}{$insert['article_social']}</div>
and replace it with: <div align="justified">{$insert['articlepage_text']}</div>
<div class="content">{$insert['article_teaserimage']}{$insert['articles_pages_title']}<div align="justified">{$insert['articlepage_text']}</div>{$insert['article_toc']}{$insert['article_social']}</div>
1 Re: Justified text in articles?
mishima
OP
144
From: -
From: -
Here is an example. I'd like justified but CT currently arranges text as flush left...
This is called 'justified' text - typically found in magazine prints etc. Makes things look a lot more tidy.
http://blog.anthonyjones.biz/wp-content/uploads/2009/01/alignment.gif
This is called 'justified' text - typically found in magazine prints etc. Makes things look a lot more tidy.
http://blog.anthonyjones.biz/wp-content/uploads/2009/01/alignment.gif
1 Re: Justified text in articles?
Philipp Esselbach
From: -
Editor
0From: -
Can you post a link to an example?
Is it possible to format text within articles with a ‘justified’ state so that that paragraphs look neat and tidy? If so, please could you let me know how this can be achieved? Thanks