#1 2016-09-26 13:30:30

Deivid
Member
Registered: 2016-07-11
Posts: 37
Website

ion:content paragraph="1" what about paragraph 2?

Hi all got this question big_smile
Soo on site there is 1 paragraph of content and second and third is hidden code:

        <!-- Left Article Contenct -->
        <div class="left-articles-content">
          <div class="left-articles-title"><a href="<ion:url />"><ion:title /></a></div>
          <div class="left-articles-text">
            <input type="checkbox" class="left-read-more-state" id="<ion:article:id />" />
            <div class="left-read-more-wrap">
              <ion:content paragraph="1" />
              <span class="left-read-more-target">
                <ion:content paragraph="2" />
              </span>
            </div>
            <label for="<ion:article:id />" class="left-read-more-trigger"></label>
          </div>
        </div>

Soo now when i press read more  then it should show only paragraph 2 and etc but now when i wtihe this code

 <ion:content paragraph="2" />

it repeats 1 paragraph and  writes paragraph 2

The question is what i should write that i would write only second paragraph ?

Offline

#2 2016-10-19 23:05:58

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: ion:content paragraph="1" what about paragraph 2?

You can't, because it displays x paragraphs, from 1 to x.
If you want do display only the third, or other paragraph, i suggest you to write some javascript, with hidden tag inside your content.


Webmaster / OUF!WEB

Offline

#3 2016-10-19 23:06:18

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: ion:content paragraph="1" what about paragraph 2?

You can't, because it displays x paragraphs, from 1 to x.
If you want do display only the third, or other paragraph, i suggest you to write some javascript, with hidden tag inside your content.


Webmaster / OUF!WEB

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations