4 of 13
4
Custom Fields in {exp:weblog:entries /}
Posted: 07 February 2007 10:20 AM   [ Ignore ]   [ # 55 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

Since that’s a comment, it shouldn’t matter either way as long as it comes before the PHP ‘if’

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 07 February 2007 10:38 AM   [ Ignore ]   [ # 56 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1519
Joined  05-15-2004

Hmm, okay, then I am pretty sure I have the modification done correctly, so that shouldn’t be the issue.

 Signature 


:: Westeros :: Hippoi Athanatoi ::

Blackadder: “Baldrick, have you no idea what irony is?”   
Baldrick: “Yeah! It’s like goldy and bronzy, only it’s made of iron.”
Blackadder III, Amy and Amiability

Profile
 
 
Posted: 12 February 2007 08:38 PM   [ Ignore ]   [ # 57 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  203
Joined  02-10-2006

Mark,

What do you think it would take to add the following feature so it works on an RSS feed tag:

{exp:rss:feed weblog="{my_weblog}" show_expired="yes" sermon_type="Traditional OR Evening"}

....

{/exp:rss:feed}

Thank you in advance!!

Profile
 
 
Posted: 13 February 2007 06:55 AM   [ Ignore ]   [ # 58 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

@bjsteiger: I’ve never used the {exp:rss:feed /} tag, I always just use the {exp:weblog:entries /} tag in a RSS template.  Would that not work?  Since it seems that the rss tag just outputs the top content anyways, I’m not sure there would be anything to limit on anyways.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 13 February 2007 08:34 AM   [ Ignore ]   [ # 59 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  203
Joined  02-10-2006

@mark - Hey! You know what I was playing with this morning and you are correct - it does work. I was trying to put the custom tag on the feed portion vs the weblog:entries portion. Thank you for the idea!

Profile
 
 
Posted: 13 February 2007 08:44 AM   [ Ignore ]   [ # 60 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

great glad it worked!

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 15 February 2007 09:09 PM   [ Ignore ]   [ # 61 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  358
Joined  11-19-2003

{exp:weblog:entries weblog="events" Textd="/^$/"}

What is the proper syntax for “if Textd is empty” ?
In a previous thread, you suggested the code above, but it doesn’t work. (No entries are shown).

Profile
 
 
Posted: 16 February 2007 09:23 AM   [ Ignore ]   [ # 62 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

since the extension now just runs a SQL query you can just do this:

{exp:weblog:entries weblog="events" Textd=""}

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 16 February 2007 09:35 PM   [ Ignore ]   [ # 63 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  358
Joined  11-19-2003

It doesn’t seem to work. I get no results.

Profile
 
 
Posted: 18 February 2007 10:45 AM   [ Ignore ]   [ # 64 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

try this:

{exp:weblog:entries weblog="events" Textd="="}

Technical response: the “=” means perform an exact match, without the “=” in quotes the generated sql would be LIKE “%%” which would match everything.  Placing the “=” there makes the sql =”” which is what you’re looking for.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 19 February 2007 08:08 AM   [ Ignore ]   [ # 65 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  873
Joined  05-14-2004

OK.

It looks like I’ve got to the same point as some other people and I’m trying to get this to work with segments. No dice.

A the moment I’ve got

{exp:weblog:entries weblog="v2_gigs" orderby="v2_gigs_venue|date" sort="desc|asc" v2_gigs_band1="{segment_3}"}

{entry_date format
="%j%S of %M"} at {related_entries id="v2_gigs_venue"}{title}{/related_entries} {if v2_gigs_tour != ""}on the {v2_gigs_tour}{/if}<br />

{/exp:weblog:entries}

Which gives me nothing when there is a valid segment 3.

Now ideally I need to check segment 3 against all of the below custom fields.

v2_gigs_band1
v2_gigs_band2
v2_gigs_band3
v2_gigs_band4
v2_gigs_band5

I’m basically trying to show a list of gigs that a band has played. Now the band can appear in any of the custom_fields because they may not always be on the same level of the bill. In a small venue they may headline (v2_gigs_band1) and in a large venue they may be an opener (v2_gigs_band5) or anywhere in between.

Thanks in advance for the help

DJ


—-//—-

HOLD FIRE on this one I’m trying to do it with reverse related entries and it might just be working grin

Profile
 
 
Posted: 19 February 2007 09:06 AM   [ Ignore ]   [ # 66 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

I’m looking forward to wether you get it working with reverse_related_entries as that would probably be the faster way to go anyways.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 19 February 2007 09:09 AM   [ Ignore ]   [ # 67 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  873
Joined  05-14-2004

Hey Mark.

Yeah got it working. LOL I like trying to do things the hard way grin

A lot simpler to do it with a reverse related entries and a single query.

It’d still be good to get confirmation that we can set a custom field with a segment.

Thanks as always for all your hard work.

Profile
 
 
Posted: 22 February 2007 01:34 PM   [ Ignore ]   [ # 68 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1519
Joined  05-15-2004

I never did manage to get it working with the extension and a mySQL regexp to fetch a certain set of entries (it would be great if there was an option to match only from the start of the contents of a field), but now I’ve got another little task that I am hoping that it might be able to help me with. smile

I am trying to do a sort of webring through EE, and one feature I need is next site & previous site. The way I had thought of doing this is having a ‘Next’ and a ‘Previous’ template that is setup to serve up a specific site depending on what is in the third segment. The third segment will hold the contents of the custom field called ‘ID’. So, if the third segment reads ‘4’ and you’re visiting the ‘Next’ template, the template should display the site where the ID is ‘5’. And if it was the ‘Previous’ template, it should display the site with ID ‘3’.

Is it possible to use the extension in such a way that you tell it to look in the custom field ‘ID’ for segment_3 + 1 or segment_3 - 1?

 Signature 


:: Westeros :: Hippoi Athanatoi ::

Blackadder: “Baldrick, have you no idea what irony is?”   
Baldrick: “Yeah! It’s like goldy and bronzy, only it’s made of iron.”
Blackadder III, Amy and Amiability

Profile
 
 
Posted: 22 February 2007 11:09 PM   [ Ignore ]   [ # 69 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  228
Joined  11-16-2004

Mark,

I was scratching my head (and a little banging) tyring to get this working for weeks, but then found this forum and the mods that needed to be made to mods.weblog.php. Saved the day as our client presentation is tomorrow.

So is it possible to perhaps put the instructions or at least the need for the mods inside the extension so when it is viewed in the Extension Manager it shows up under “Documentation” or “Settings?”

Thanks for all the great work.

- T.

 Signature 

T. Payton
OneCreative | Albuquerque, NM

Profile
 
 
Posted: 26 February 2007 08:15 AM   [ Ignore ]   [ # 70 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1519
Joined  05-15-2004

Figured out how to use the extension to get me custom field value +/- 1: the greater than/lesser than option and a limit of 1. So easy. This really is a great extension. smile

Would it be possible, btw, to have an option to match the pattern against the start of the custom field value only? I think that’d solve my issue with selecting a range that starts with, for example, 2.1., and not getting 2.2.1. as well.

 Signature 


:: Westeros :: Hippoi Athanatoi ::

Blackadder: “Baldrick, have you no idea what irony is?”   
Baldrick: “Yeah! It’s like goldy and bronzy, only it’s made of iron.”
Blackadder III, Amy and Amiability

Profile
 
 
Posted: 26 February 2007 09:45 AM   [ Ignore ]   [ # 71 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1519
Joined  05-15-2004

Hmm, okay, maybe I spoke a bit too soon:

{exp:weblog:entries weblog="{current_weblog}" 9_id="<{segment_3}" limit="1" disable="pagination" dynamic="off"}

The above code works as it should. When the segment is ‘5’, it gets me the entry with ‘4’ in the ‘9_id’ field.

However, the code below here does not work. Regardless of what the segment shows, I get the entry with ‘7’ in the ‘9_id’ field:

{exp:weblog:entries weblog="{current_weblog}" 9_id=">{segment_3}" limit="1" disable="pagination" dynamic="off"}

 Signature 


:: Westeros :: Hippoi Athanatoi ::

Blackadder: “Baldrick, have you no idea what irony is?”   
Baldrick: “Yeah! It’s like goldy and bronzy, only it’s made of iron.”
Blackadder III, Amy and Amiability

Profile
 
 
Posted: 26 February 2007 09:48 AM   [ Ignore ]   [ # 72 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

You may want to try using the orderby= attribute and the sort= attribute depending on if you’re using greater than or less than.  can you give some examples of what you’ve tried as a segment to get ‘7’

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
   
4 of 13
4
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66467 Total Logged-in Users: 31
Total Topics: 84862 Total Anonymous Users: 11
Total Replies: 455336 Total Guests: 186
Total Posts: 540198    
Members ( View Memberlist )