Sep 08, 2008, 10:36 AM *
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  
Pages: 1 [2] 3 4 ... 7   Go Down
  Print  
Author Topic: [Snippet] NewsListing 6.4.2 [Stable]  (Read 32117 times)
0 Members and 1 Guest are viewing this topic.
Pixel Stuff
Full Member
***
Posts: 236



WWW
« Reply #15 on: Apr 12, 2006, 02:35 PM »

Another question. Now that I removed the "Older Items" list.  Is there an automatic way to put a "more..." link to the main news page of choice?  Or do you just have to hard code it into chunk template?
Logged
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #16 on: Apr 12, 2006, 02:38 PM »

Would you log that in the tracker as well with the message "Change all true/false defaults to 1/0 for better reference"

Thanks!
Logged

Pixel Stuff
Full Member
***
Posts: 236



WWW
« Reply #17 on: Apr 12, 2006, 02:40 PM »

I can log both of those.  No problem.
Logged
MadeMyDay
Moderators
*
Posts: 805



WWW
« Reply #18 on: Apr 12, 2006, 02:52 PM »

Thx Mark for this improvement!

See file attached for german language.

Hint: Line 53 - Small typo in english lang file: "...alows..."

Regards,
Marc

* german.inc.php.txt (2.34 KB - downloaded 433 times.)
Logged

Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #19 on: Apr 12, 2006, 02:55 PM »

Thanks! Can you log that in the bugtracker please?
Logged

Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #20 on: Apr 30, 2006, 05:47 PM »

NewsListing Version 6.4.2
STABLE RELEASE
Logged

yentsun
MODx Russia
Moderators
*
Posts: 514



WWW
« Reply #21 on: Apr 30, 2006, 06:38 PM »

I have 6.4.2 and  get this error when changing anything in templates (or newslisting snippet calls)
Code:
Fatal error: Cannot redeclare customsort() (previously declared in /home/prsound/public_html/manager/includes/document.parser.class.inc.php(691) : eval()'d code:145) in /home/prsound/public_html/assets/snippets/newslisting/functions.php on line 60

then I refresh the page and everything goes ok... but not in IE:(


http://www.promosound.org/afisha (see the first news item in the left got stuck to the edge for no obvious reason)


what is this error anyways?
Thanks
« Last Edit: Apr 30, 2006, 06:49 PM by yentsun » Logged

http://modx.ru - российская поддержка MODx
http://modxnotes.blogspot.com/ - личный блог по MODx
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #22 on: Apr 30, 2006, 06:44 PM »

Try replacing

Code:
include($filevalue);

with

Code:
include_once($filevalue);
Logged

yentsun
MODx Russia
Moderators
*
Posts: 514



WWW
« Reply #23 on: Apr 30, 2006, 07:00 PM »

Try replacing

Code:
include($filevalue);

with

Code:
include_once($filevalue);


done but... problem persists ... as I noticed - there's no include of the functions.php in the code Huh
Code:
$files['language'] = "assets/snippets/newslisting/lang/$language.inc.php";
$files['functions'] = "assets/snippets/newslisting/functions.php";

foreach ($files as $filename => $filevalue) {
if (file_exists($filevalue) && $filename != "language") {
   include_once($filevalue);
} else if(file_exists($filevalue) &&  $filename == "language") {
include_once($filevalue);
} else if($filename == "language") {
return "Language file does not exist Please check: ".$filevalue;
  } else {
return $filevalue.$_lang['file_does_not_exist'];
}
}
- this is the only passage where "include" is met
Logged

http://modx.ru - российская поддержка MODx
http://modxnotes.blogspot.com/ - личный блог по MODx
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #24 on: Apr 30, 2006, 10:38 PM »

Can you provide both calls?

I am unable to duplicate the symtoms you describe on any of my testing servers.
Logged

mjarecki
Jr. Member
*
Posts: 35


« Reply #25 on: Apr 30, 2006, 11:05 PM »

Hi Mark,

Thanks for the update, however, it still doesn't seem to address the problem I was describing earlier - i.e wanting HTML output in the following way:

Code:

<div class="left">
<h2><a href="SomePermalink" title="Permanent link to this article">Article 1</a></h2>
<p class="author">Category 1 | Author | Date</p>
<p>Some summary. <a href="#" title="Permanent link to this article">More</a></p>
</div>

<div class="right">
<h2><a href="SomePermalink" title="Permanent link to this article">Article 2</a></h2>
<p class="author">Category 2 | Author | Date</p>
<p>Some summary. <a href="#" title="Permanent link to this article">More</a></p>
</div>

<br style="clear: both;" />

<div class="left">
<h2><a href="SomePermalink" title="Permanent link to this article">Article 3</a></h2>
<p class="author">Category 1 | Author | Date</p>
<p>Some summary. <a href="#" title="Permanent link to this article">More</a></p>
</div>

<div class="right">
<h2><a href="SomePermalink" title="Permanent link to this article">Article 4</a></h2>
<p class="author">Category 2 | Author | Date</p>
<p>Some summary. <a href="#" title="Permanent link to this article">More</a></p>
</div>

<br style="clear: both;" />

etc.

It seems the First, Last and Alt chunks work nicely if you have a vertical column of summaries with one post per row. However, I'm trying to make a column of summaries that have two listings in each row (as in the  HTML code above). In essence, I'd like to assign a chunk for each row and assign the first summary to the left, the second summary to the right, on the next row I'd assign the third article to the left and the fourth article to the right (so on and so forth), rather than the First, Last and Alt options.

I tried the current method when i have 5 articles in the archive, it renders First, Alt, Last, Alt, Last, instead of my intended Left, Right, Left, Right, Left.

How best to go about this? Am I being clear?

Cheers

Mark


* exampleNewslisting.jpg (25.14 KB, 562x559 - viewed 424 times.)
Logged
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #26 on: Apr 30, 2006, 11:21 PM »

Here is an example I put together a while back:

http://modxdev.net/NewsListingFloats.html
Logged

sottwell
Documentation Team
*
Posts: 7,912



WWW
« Reply #27 on: Apr 30, 2006, 11:55 PM »

I've used NewsListing for the "main menu", with floats:



Code:
.hmnSplash{
width:185px;
float:left;
margin:0 7px 0 0;
padding:0;
border:1px solid #cacaca;
}

Code:
.hmnListing{
width:375px;
height:470px;
float:left;
margin:0 7px 7px 0;
padding:0;
border:1px solid #cacaca;
text-align:center;
}

« Last Edit: Jun 08, 2006, 05:37 AM by sottwell » Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
mjarecki
Jr. Member
*
Posts: 35


« Reply #28 on: May 01, 2006, 12:12 AM »

thanks Mark!

Great Snippet.
Logged
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #29 on: May 01, 2006, 12:15 AM »

You are most welcome!

Thank you for the kind words.
Logged

Pages: 1 [2] 3 4 ... 7   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!