HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


RSS Feed Blocks

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#69253 (In Topic #14667)
Avatar

Fan in action

I'm totally new at this and know sqwat about code. Cut and paste is my greatest accomplishments. So I managed with some difficulty to set up a RSS Feed block on the first page, (for some reason I have 2 identicle front pages) but the article feeds are too long, like almost to the end of the feed before the 'view' link is shown. I can find the block code in 'edit this page' but I have no idea where to set the size of the feeds. Any clues where to find the individual block config settings would be helpful. Thanks
Back to the top
 
Posted
Rating:
#69254
Avatar

Fan in action

BTW this message was entered using FF as IE9 did not function when clicking on Add Topic
Back to the top
 
Posted
Rating:
#69266
Avatar

RSS feeds encode whatever content length they want, ocPortal won't change it by default.

But if you edit the BLOCK_MAIN_RSS_SUMMARY.tpl and change {NEWS} to {$TRUNCATE_LEFT,{NEWS},200,1,1} that would truncate it to 100 characters. It's quite smart, it'll preserve HTML formatting and validity etc.

Regarding the IE9 issue, I couldn't reproduce it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69274
Avatar

Fan in action

I can't seem to find an area in the Admin Zone to edit .tp1 files. Would you be so kind to point me in the right direction? Thanks
As for the IE9 issue I had yesterday, that seems to have fixed itself as it's working fine now. Go figure LOL
Back to the top
 
Posted
Rating:
#69275
Avatar

Community saint

Go to Admin Zone > Style > Manage themes. There select "Edit templates" for the desired theme.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#69276
Avatar

Just paste the template name into the Admin Zone search.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69277
Avatar

Fan in action

Ah found it, thanks.
Change didn't seem to affect the length of the feed, it still shows the full article. Originally it was set to <h3>{$TRUNCATE_LEFT,{NEWS_TITLE},70,1,1}</h3> . Also I don't understand how changing the 70 to 200 would lesson the display to 100 Characters.
Like I said I know sqwat about code.
Back to the top
 
Posted
Rating:
#69279
Avatar

Nope, I said {NEWS} not {NEWS_TITLE} ;). That is not truncated yet.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69282
Avatar

Fan in action

Well there are several instances of {NEWS}

Code

<div class="float_surrounder rss_summary">
 <div class="newscat_img_author">
  {+START,IF_NON_EMPTY,{AUTHOR}}
   <div class="news_by">{AUTHOR}</div>
  {+END}
 </div>

 <h3>{$TRUNCATE_LEFT,{NEWS_TITLE},70,1,1}</h3>

 {+START,IF_NON_EMPTY,{DATE}}
  <div class="page_subtitle_tagline">
   {!POSTED_TIME,{DATE*}}{+START,IF,{$AND,{$NOT,{$IN_STR,{CATEGORY},<img}},{$IS_NON_EMPTY,{CATEGORY}}}}. {!IN,{CATEGORY}}.{+END}
  </div>
 {+END}
 {+START,IF,{$AND,{$IN_STR,{CATEGORY},<img},{$IS_NON_EMPTY,{CATEGORY}}}}
  <div class="newscat_img_author">
   {CATEGORY}
  </div>
 {+END}

 {+START,IF_NON_EMPTY,{NEWS}}
  {+START,IF,{$NOT,{$IN_STR,{NEWS},<p>}}}<p class="news_summary_p">{+END}{NEWS}{+START,IF,{$NOT,{$IN_STR,{NEWS},<p>}}}</p>{+END}
 {+END}
</div>

<div class="news_goto">
 {FULL_URL}
</div>


It is so much simpler in the other forum format I use to change RSS block parameters, there is a setting to show as much as or as little as you want.
Back to the top
 
Posted
Rating:
#69284
Avatar

Just change them all.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69287
Avatar

Fan in action

That worked, thanks Chris
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: