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.


Customise main_rss block

Login / Search

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

Community saint

I need to customise the output of BLOCK_MAIN_RSS_SUMMARY.tpl. The template has a "{NEWS}" tag which resolves to a three column item, such as this:



At a minimum I need to modify the column widths and text colours to suit my site layout and colour scheme, but these are not defined in the tpl or css. These are hard coded, for example:

Code

<p class="news_summary_p"><div style="color: #000000;font-family: Arial, Helvetica, sans-serif;     font-size:12px; font-size: 12px; width: 555px;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="140" valign="top" rowspan="2"><div style="border: 1px solid #999999; margin: 0px 10px 5px 0px;">
1) What do I need to change?

2) How does one go about identifying where specific tags are defined/declared? Blindly searching the code for keywords only takes me so far.

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:
#68779
Avatar

Community saint

If I understand you right for varying column widths you will need to put your column1 content in a box of some sort and ocPortal has lots of them and do the same for column2 then wrap both of them together in another box or wrapper. Specify each column width by percent or fixed width. you can do this as many times as you wish.

I have done it on my front page but as it is now it is is bordered all over the place.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I just reread your original post and I think I am addressing a different issue. :$


Last edit: by friendly


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#68782
Avatar

Community saint

Your right friendly…your are addressing a different issue ;).

My problems is trying to work out how the news content specifically is being generated, and where its columns are being defined.

As for the boxes on your site, the heights of the "Tag cloud"  & "Newest 18 Paleo News Stories" boxes are off by a few pixels (just in case you haven't noticed yet).

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:
#68783
Avatar

Community saint

temp1024 said

As for the boxes on your site, the heights of the "Tag cloud"  & "Newest 18 Paleo News Stories" boxes are off by a few pixels (just in case you haven't noticed yet).
Yes and I have defined the two right boxes but not the tag box. Even though the site width is fixed it will display slightly different on different display systems. I know I can define the height in the tag cloud but am not that over the edge about it. It is the same with the bottom 2 boxes, the one on the right is defined and the left will vary

I will eventually strip much of the the outlined material to look free floating - later though. Other stuff to deal with now, still recovering from Elief's crash effect.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#68786
Avatar

I haven't analysed everything said here carefully, but I think the answer is that the 'BLOCK_MAIN_RSS_SUMMARY.tpl' template contains most of it. The rest looks like it has actually come from an RSS feed itself (as they often encode HTML).


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:
#68800
Avatar

Community saint

I thought about that too, and I checked the raw feed (just by browsing to it directly and viewing the source.), but there is no colour info in there or widths on divs (no divs actually).

So unless I am not actually seeing a true raw feed, using the method above, its not coming from the feed.

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:
#68801
Avatar

All I can say is ocPortal doesn't use tables or inline styles like these, or have significant HTML in the PHP, so it seems very unlikely it could come from ocPortal.


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:
#68832
Avatar

Community saint

Ok Thanks Chris, I'll dig deeper and see what I can find.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: