Subrion CMS Support Forums   Follow Subrion on Twitter Join Us on Facebook

Go Back   Subrion CMS Support Forums > Subrion CMS Core Discussion > Subrion Core Discussion

Subrion Core Discussion Here we discuss everything that is related to Subrion CMS core functionality. Additional features related to plugins and templates engines. New features that are related to Manage Pages functionality or anything that's not related to Subrion packages.

Reply

 

LinkBack Thread Tools Display Modes
Old 06-21-2007   #1 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Sub item ~ Display Truncation Question?

Sergey,

You kindly put my subitems (News Briefs) on home page like Articles. It's wonderful! Love it, and I found how to truncate it to display less of the content.

However, I would like to compact it a bit more as the articles are right down the page, by the time I have finished adding, therefore the answer so I thought was to truncate to between 250 and 300 'approx', depending on the nearest full stop.

Can this be done? I tried various smarty truncate codes but none achieved this.

It would just look better to see what is e.g:

' The idea that sunscreen prevents cancer is a myth. It's a myth promoted by a profit-seeking tag-team effort between the cancer industry and the sunscreen industry. The sunscreen industry makes money by selling lotion products that actually contain cancer-causing chemicals. It then donates a portion of that money to '

Read Full...


like this:

'The idea that sunscreen prevents cancer is a myth. It's a myth promoted by a profit-seeking tag-team effort between the cancer industry and the sunscreen industry. The sunscreen industry makes money by selling lotion products that actually contain cancer-causing chemicals. '
Read Full...

Would appreciate any ideas


LorenGK is offline   Reply With Quote
Old 06-21-2007   #2 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Sub item ~ Display Truncation Question?

Loren, I would meditate about this.
Wow, it' a 500 post on forum
Sergey Hmelevsky is offline   Reply With Quote
Old 06-21-2007   #3 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: Sub item ~ Display Truncation Question?

Quote:
Originally Posted by Sergey Hmelevsky View Post
Loren, I would meditate about this.
Wow, it' a 500 post on forum

Do you mean you will meditate on this or I should? If you, its 'I will meditate on this' Well done your English is getting better and better!

However not sure what you mean about 500 post only reached 52 so far...but knowing me...won't be long! LOL

Have a great day!
LorenGK is offline   Reply With Quote
Old 06-21-2007   #4 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Sub item ~ Display Truncation Question?

Oh, thanks, so, I wanted to say 'I will meditate on this'
Look at tail of link
Code:
http://www.xooarticles.com/forums/xooarticles-script-mods/101-sub-item-display-truncation-question.html#post500
it was a 500'th post on forum

Last edited by Sergey Hmelevsky; 06-21-2007 at 04:48 AM.
Sergey Hmelevsky is offline   Reply With Quote
Old 07-05-2007   #5 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: Sub item ~ Display Truncation Question?

Oh I see! Well, that was rather lucky...should have had a prize for being such a wordy wench!

Did you meditate long enough on this question re truncate? Any Ideas of how to do above?
LorenGK is offline   Reply With Quote
Old 07-05-2007   #6 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Sub item ~ Display Truncation Question?

I have some ideas, but now I worked with another feature and this not implemented yet.
Sergey Hmelevsky is offline   Reply With Quote
Old 07-06-2007   #7 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Sub item ~ Display Truncation Question?

Now, article snippet truncated to dot or, if dot not found, to space.
Sergey Hmelevsky is offline   Reply With Quote
Old 07-07-2007   #8 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: Sub item ~ Display Truncation Question?

Good Grief Sergey I didn't even notice! Bless You yes that seems to do the trick.

However, pesky quotes are giving me headache again...I will go find thread and post there.

Could you also tell me where I can reduce the number of characters even more? I can't remember where I saw it.

Last edited by LorenGK; 07-07-2007 at 04:10 AM.
LorenGK is offline   Reply With Quote
Old 07-09-2007   #9 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Sub item ~ Display Truncation Question?

Loren, I should propose to you upgrade to xooArticles v1.1, it has new features and less bugs
Sergey Hmelevsky is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Home Page ~ Subitems display LorenGK Subrion Core Discussion 10 06-06-2007 04:59 AM
Sub-item categories redeye Subrion Core Discussion 1 04-16-2007 10:35 PM


All times are GMT -6. The time now is 01:50 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0