Jump to content


Photo

Parse a specific article in an IP.Content page


  • Please log in to reply
3 replies to this topic

#1 Josh Bond

Josh Bond

    IPB Full Member

  • Members
  • PipPipPip
  • 168 posts

Posted 21 June 2012 - 12:12 AM

In IP.Content, you can create a page, something simple:

<div class='ipsLayout ipsLayout_withleft'>
<div class='ipsLayout_left'>
<div class='ipsSideBlock'>
<h3>Side Block</h3>
I am a side block
</div>
</div>
<div class='ipsLayout_content'>
<div class='ipsBox'>
<div class='ipsBox_container ipsPad'>
{parse article id="11"} ??


Note the last line. Is there a way to display a specific article on an IP.Content page?

#2 Rimi

Rimi

    Strip Me

  • +Clients
  • 6,121 posts

Posted 21 June 2012 - 12:15 AM

Why can't you just copy and paste the html of the article itself?

#3 Josh Bond

Josh Bond

    IPB Full Member

  • Members
  • PipPipPip
  • 168 posts

Posted 21 June 2012 - 05:24 AM

For one, you have 2 versions of the article to maintain.

But I did try that earlier. I toggled the editor mode in the articles editor and copied the text into a page. The page just strips out the tags when rendering without obeying them.

Josh

#4 Rimi

Rimi

    Strip Me

  • +Clients
  • 6,121 posts

Posted 21 June 2012 - 07:12 AM

Go to the actual page with the article itself and copy the source.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users