Headlines Not sorting

Is Coranto not working properly for you? Here's where to ask for support help; for best results, follow these steps:
  • - Check your core/addon documentation for possible solutions
  • - Search these forums for similar problems that have already been solved
  • - If you're still stumped, check out THIS TOPIC, and post your question in this forum!!

Moderators: Spunkmeyer, Dale Ray, SrNupsen, Bluetooth, Jackanape

Headlines Not sorting

Postby Gcampos » Fri Jun 15, 2007 5:44 am

Hello all,

I have this issue that has been bothering me for awhile now, in fact I tried to figure out why headlines wouldn't sort before, but quit after several tries. So now I figured that perhaps the reason was that the user was posted incorrectly. The posting is not news, but an event schedule, in the following format:

Town/City name
Date (01 Jan 07 Format) - Day/Time
Special Announcements
Cartel
Info/Directions
Footnotes

In Advance Profile settings for the main profile, it is set to:
Code: Select all
Sort Numerically by a Specific Field

Then the Sort Orders is set to:
Code: Select all
Date (01 Jan 07 Format)
Date (01 Jan 07 Format)


Yet, in Headlines the output is not correct, see link below:
http://www.californiabullfights.org/cblinks/index.shtml

Not sure why or what is causing this, if someone could figure it out or needs more code, please let me know.

Gerry

The Main Style is as above, they are all custom fields, here is style code:
Code: Select all
<PerlCode>
$mycomment = "";
if (not $counter{$ProfileName}) {
$mycomment = "<!-- Output for Profile: $ProfileName Begins Here -->";
$counter{$ProfileName} = 1;
}
</PerlCode>
<If: Field: mycomment><Field: mycomment></If>
<center>
<b>
<font size="5" face="Arial">
<Field: CustomField_Town_City_CB></font><br>

<font size="4" face="Arial">
<Field: CustomField_Date> - <Field: CustomField_Day_Time></font><br><br>

<font size="3" face="Arial">
<Field: CustomField_SpecAnnounce_CB></font><br><br>

<font size="2" face="Arial">
<Field: CustomField_CartelCB></font><br><br>

<font size="2" face="Arial">
<Field: CustomField_InfoDirCB></font><br>

<font size="2" face="Arial">
<Field: CustomField_FootNotesCB></font>
</b>
<hr noshade color="#000000" size="3" width="80%">
</center>

The headline style is the following:
Code: Select all
<PerlCode>
$mycomment = "";
if (not $counter{$ProfileName}) {
$mycomment = "<!-- Output for Profile: $ProfileName Begins Here -->";
$counter{$ProfileName} = 1;
}
</PerlCode>
<p><If: Field: mycomment><Field: mycomment></If>
<font size="2" face="Arial"><strong><Field: CustomField_Town_City_CB></strong><br>
<Field: CustomField_SpecAnnounce_CB><br>
<Field: CustomField_Date></p>
Gcampos
 
Posts: 31
Joined: Tue Jan 23, 2007 9:06 pm
Location: So Cal

Postby Musicvid » Fri Jun 15, 2007 5:56 am

I may be wrong here, but I have never heard of a "not" operator in Perl, perhaps you are confusing it with C or another language?
Since you are enclosing your arguments inside <PerlCode> tags in Coranto, proper Perl syntax is absolutely required.
The "not" operater in Perl, AFAIK, is "if (!$whatever...)" or "unless ($whatever...)"
Musicvid
 
Posts: 138
Joined: Wed Jan 17, 2007 1:05 am
Location: Western America

Postby Dale Ray » Mon Jun 18, 2007 3:33 pm

Note: I have not used the built in headlines for some time and the following statements are from (a very feeble) memory.

Are you using the built in headlines feature?

The built in headlines feature will only sort by time. The SortOrders addon and other addons that give you extra ability to sort in specialized ways do not effect the built in headlines.

Use a separate profile for your headlines and then you can use the advanced sorting features.

I usually use hl_ as a prefix for headline profiles with the profile name following the underscore.

Using a full profile for headlines gives you much more flexibility.
Dale Ray
User avatar
Dale Ray
 
Posts: 1001
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby Gcampos » Mon Jun 18, 2007 6:13 pm

Musicvid wrote:I may be wrong here, but I have never heard of a "not" operator in Perl, perhaps you are confusing it with C or another language?
Since you are enclosing your arguments inside <PerlCode> tags in Coranto, proper Perl syntax is absolutely required.
The "not" operater in Perl, AFAIK, is "if (!$whatever...)" or "unless ($whatever...)"


I didnt do it, I swear :shock: , it was sent to me by someone else to help with profile positioning, or something like that.

Gerry
Gcampos
 
Posts: 31
Joined: Tue Jan 23, 2007 9:06 pm
Location: So Cal

Postby Gcampos » Mon Jun 18, 2007 6:39 pm

Dale wrote:Note: I have not used the built in headlines for some time and the following statements are from (a very feeble) memory.

Are you using the built in headlines feature?

The built in headlines feature will only sort by time. The SortOrders addon and other addons that give you extra ability to sort in specialized ways do not effect the built in headlines.

Use a separate profile for your headlines and then you can use the advanced sorting features.

I usually use hl_ as a prefix for headline profiles with the profile name following the underscore.

Using a full profile for headlines gives you much more flexibility.


You're right, I was using the default headlines style, have since changed it and looks like it worked. Thanks for the heads up.

Gerry
Gcampos
 
Posts: 31
Joined: Tue Jan 23, 2007 9:06 pm
Location: So Cal


Return to Troubleshooting

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron