Aug 08, 2008, 02:19 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1] 2 3 ... 20   Go Down
  Print  
Author Topic: [Snippet] NewsListing 6.3.3  (Read 75457 times)
0 Members and 1 Guest are viewing this topic.
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« on: Oct 29, 2005, 10:58 PM »

NewsListing Version 6.4.2
STABLE RELEASE

The 6.4.x series has been deemed stable and the 6.3.x series deprecated. Please continue any discussions here:

http://modxcms.com/forums/index.php/topic,3873.0.html

Archived version of 6.3.3 Release Header:

Quote
NewsListing Version 6.3.3
BUGFIX RELEASE

Features

Bold indicates newest.

Ability to call all parts of the document object in a template via [+documentobject+] and all tv's via [+tvnameoftv+]

multilevel/hierarchal support

TV sorting

Include and exclude filtering

RSS output

Pagination

Page display

Xhtml strict month based archives

Multisort capabilities

Updated documentation

Multicall abilities/toggle archives

Installation

Quote
Overwrite the contents of NewsListing with the contents of the file snippet.newslisting.6.3.3.txt

Make sure functions.php gets to assets/snippets/newslisting/functions.php

If you are doing this via the File Manager you will need to create the newslisting directory.

Thats it!

* snippet.newslisting.6.3.3.zip (12.74 KB - downloaded 1674 times.)
« Last Edit: May 05, 2006, 02:14 PM by Mark » Logged

Dr. Scotty Delicious
Coding Team
*
Posts: 1,170


Dr. of Fine Pirate Arts


WWW
« Reply #1 on: Oct 29, 2005, 11:48 PM »

Awesome, and thanks.  That was less than 12 hours from the time the problem was reported to the posting of the corrected code, and that includes figuring out what "the problem" was.  That task takes like 6 months in [* insert other CMS here*] time.  I think if anything quantifies the solidarity of the community of a CMS, this speaks volumes.  I believe the ease of use, and the new features will draw folks to MODx 9x, but it is the community that will keep them around.  You folks feel like family that have been around forever.

-sD-
« Last Edit: Oct 29, 2005, 11:50 PM by ScottyDelicious » Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.

http://scottydelicious.com
http://piratemachine.org
http://treasurechestcart.com

My Amazon Wishlist Wink

Download WebLoginPE 1.3.0: A complete web user management snippet for MODx.
TreasureChest Documentation: http://www.treasurechestcart.com/documentation.html.
TreasureChest. Easy MODx eCommerce!
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #2 on: Oct 30, 2005, 11:39 AM »

Thank you!
Logged

Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #3 on: Nov 01, 2005, 10:09 AM »

UPDATED. See first post.
Logged

Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #4 on: Nov 04, 2005, 10:10 AM »

UPDATED AGAIN See first post.
Logged

sottwell
Documentation Team
*
Posts: 7,628



WWW
« Reply #5 on: Nov 04, 2005, 11:54 AM »

Still have some typos in the argument checking...truc instead of trunc in the isset function.

Code:
$trunc = isset($truc) ? $trunc : true;
    // should there be summary/short version of the posts?

$truncsplit = isset($trucSplit) ? $truncSplit : true;
    // should the post be summarized at the "splitter"?

$splitter = isset($trucAt) ? $truncAt : "<!-- splitter -->";
    // where to split the text

//$lentoshow = isset($trucLen) ? $truncLen : 450;
    // how many characters to show of blogs
    // DEPRECATED: too easy to split in middle of an A tag, use splitter, above
    // but left here to uncomment if you feel so inclined
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
The templates that were available on loripsum.co.uk will become available on the sottwell.com server once I get it properly organized.
Dr. Scotty Delicious
Coding Team
*
Posts: 1,170


Dr. of Fine Pirate Arts


WWW
« Reply #6 on: Nov 04, 2005, 12:56 PM »

Still have some typos in the argument checking...truc instead of trunc in the isset function.


I did a find all "truc" and replace all with "trunc" in BBEdit.  See if this looks correct.

* snippet.newslisting.txt (10.55 KB - downloaded 1357 times.)
Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.

http://scottydelicious.com
http://piratemachine.org
http://treasurechestcart.com

My Amazon Wishlist Wink

Download WebLoginPE 1.3.0: A complete web user management snippet for MODx.
TreasureChest Documentation: http://www.treasurechestcart.com/documentation.html.
TreasureChest. Easy MODx eCommerce!
mrruben5
Jr. Member
*
Posts: 10


« Reply #7 on: Nov 04, 2005, 02:17 PM »

Excellent Grin Shocked
I'm surprised I saw my name there.
Logged
Robsta
Full Member
***
Posts: 116


WWW
« Reply #8 on: Nov 07, 2005, 06:30 PM »

Still have some typos in the argument checking...truc instead of trunc in the isset function.
I did a find all "truc" and replace all with "trunc" in BBEdit.  See if this looks correct.
I was trying to get this working earlier... either I didn't have the right parameters set, or the truncation doesn't seem to work.

I was testing with one post, and could only get the entire document content to appear, which is pretty default when using [[NewsListing?startID=8]]. The '&truncLen' option, set to '&truncLen=20' to test it, wasn't doing as expected. I tried it was using the download in ScottyDelicious' post, as well as the updated file at the top of the post (looked to be the same one actually).

Or am I missing something obvious?  Roll Eyes
Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #9 on: Nov 07, 2005, 06:35 PM »

&truncLen does not exist at the moment!

It was the old trunctuate at x characters function which is at the moment nonfunctional.
Logged

Robsta
Full Member
***
Posts: 116


WWW
« Reply #10 on: Nov 07, 2005, 06:39 PM »

&truncLen does not exist at the moment!

It was the old trunctuate at x characters function which is at the moment nonfunctional.
Ahh....  thanks.
Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
sottwell
Documentation Team
*
Posts: 7,628



WWW
« Reply #11 on: Nov 07, 2005, 07:22 PM »

It's much better to use the Summary (introtext in the database) field for this, even if all it is is a copy/paste of the first few lines of the article itself.  This way you avoid nasty surprises like images appearing and enlarging an otherwise nice neat "teaser".
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
The templates that were available on loripsum.co.uk will become available on the sottwell.com server once I get it properly organized.
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #12 on: Nov 07, 2005, 07:43 PM »

Agreed
Logged

Robsta
Full Member
***
Posts: 116


WWW
« Reply #13 on: Nov 08, 2005, 08:29 AM »

It's much better to use the Summary (introtext in the database) field for this, even if all it is is a copy/paste of the first few lines of the article itself.  This way you avoid nasty surprises like images appearing and enlarging an otherwise nice neat "teaser".
Yea, good idea.
Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
sottwell
Documentation Team
*
Posts: 7,628



WWW
« Reply #14 on: Nov 08, 2005, 09:23 AM »

Especially when the client adds his own new pages...  Roll Eyes
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
The templates that were available on loripsum.co.uk will become available on the sottwell.com server once I get it properly organized.
Pages: [1] 2 3 ... 20   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!