We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Custom Fields in {exp:weblog:entries /}

Development and Programming

Adam Khan's avatar
Adam Khan
315 posts
17 years ago
Adam Khan's avatar Adam Khan

When using the extension I get a big whopping 2.5 seconds jump in template processing time:

(0.090625) Calling Extension Class/Method: Custom_fields_in_ee_tags/modify_sql (2.605126) -> Data Returned

Is this normal for the extension? If so, I think it should come with a warning. If not, any ideas why it should be doing this?

And yet, when I disable the extension, I get this:

(0.072874) -> Method Called: entries (3.559487) -> Data Returned

Same template, same site.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

That’s certainly not normal, can you provide a few more statistics, such as how many entries you have, how many custom fields you have, and what your limiting on? Thanks!

       
Hop Studios's avatar
Hop Studios
459 posts
17 years ago
Hop Studios's avatar Hop Studios

I’m using version 2.1.7 on EE 1.5.2, and I can’t get it working.

Here’s the page: http://208.69.123.116/site/test

Here’s the code:

{exp:weblog:entries weblog="articles" article_type="=Hop" limit="35"}
              <tr>
                <td width="100" align="left" valign="top" class="text"><a href="http://{title_permalink=articles/item}">/{article_thumbnail_old}</a>
{article_type}</td>
                <td align="left" valign="top" class="text">
                  <a href="http://{title_permalink=articles/item}">{title}</a>

                      <i>{article_subtitle}</i>
                    by {article_byline}

                    <div align="justify">{article_summary}</div></td>
                    </tr>


{/exp:weblog:entries}

As you can see, it should only show article_type = Hop, but instead, it’s showing all article types.

Ideas?

TTFN Travis

       
Capt'n Morgan's avatar
Capt'n Morgan
20 posts
17 years ago
Capt'n Morgan's avatar Capt'n Morgan

I’m about to give this a whirl on my 1.6 install. I’m using the repeet extension, and hoping the two can play nicely together.

I wish that the important info from this thread was contained in a WIki or a doc. I don’t look forward to flipping through 9 pages to make sure I have the right files and the right instructions.

Is the attachment in the first post of this thread the most current?

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

Capt’n Morgan – yes it is, I always keep the most current file up top for easy access.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

supersusie did you try just article_type="Hop"? Also, case matters, so make sure your custom field actually contains “Hop” just like that.

       
Capt'n Morgan's avatar
Capt'n Morgan
20 posts
17 years ago
Capt'n Morgan's avatar Capt'n Morgan

Got, thanks Mark.

Here’s what I’m dealing with. The filter I’m using is very simple, but I’m just not sure if I’m using it correctly with the repeet calendar code.

I have a field called event_type, and I want to list just one a certain group of events. Here’s the code:

{exp:repeet:parse date_header_interval="month"}
      {repeet:date_header}%F %Y{/repeet:date_header}
      {repeet:no_results}No events are scheduled at this time.{/repeet:date_header}
      
      {exp:repeet:get_ids weblog="calendar" parse="inward" end="1 year"}
  
        {exp:weblog:entries weblog="calendar" event_type="/Commodore Club Event/"} entry_id="{repeet:entry_ids}" dynamic="off" show_expired="no" show_future_entries="yes"}
        {repeet:item}
          {repeet:entry_date}{entry_date format="%Y-%m-%d %H:%i"}{/repeet:entry_date}
          {repeet:expiration_date}{expiration_date format="%Y-%m-%d %H:%i"}{/repeet:expiration_date}
          {repeet:interval}{repeat_interval}{/repeet:interval}
          {repeet:include_dates}{include_dates}{/repeet:include_dates}
          {repeet:exclude_dates}{exclude_dates}{/repeet:exclude_dates}
          {repeet:display}

Sorry for posting ALL my repeet code, I just want to make sure I have the syntax in the correct place.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

a few things,

  1. there shouldn’t be slashes around the event type, unless those are in your custom field? try event_type="Commodore Club Event"
  2. I’m not sure if this is going to work with repeet because it defines the entry_ids which may cancel out the custom call all together.

let me know what happens when you remove those slashes.

       
Capt'n Morgan's avatar
Capt'n Morgan
20 posts
17 years ago
Capt'n Morgan's avatar Capt'n Morgan

I had tried it with and without the slashes, but no dice either way. Hmmm…..

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

can you try it without the repeet code around it? just isolating the weblog entries tag? to see if it’s not working within repeet.

       
Capt'n Morgan's avatar
Capt'n Morgan
20 posts
17 years ago
Capt'n Morgan's avatar Capt'n Morgan

Yep, I was working on just that. And, it’s sort of good news that it doesn’t work for me without repeet.

{exp:weblog:entries weblog="calendar" event_type="Commodore Club Event" show_future_entries="yes"}

It shows everything.

If that syntax should work, I’ll go back through everything.

Now for the mod.weblog.php hack, I only added what UltraBob indicated in his instructions here. I gathered that those were a replacement for what was in the extension file, but maybe that’s where I goofed.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

Capt’n Morgan – the update instructions ultrabob posted should be nearly identical to those in the extension. is there any way you could PM me a txt file of your sql output? Go to Admin » Sys Pref » Output and Debugging and turn on SQL Debugging. Then at the bottom of the page where the custom field limiter should be working (without repeet) copy and paste the sql log into a text file.

thanks.

       
Capt'n Morgan's avatar
Capt'n Morgan
20 posts
17 years ago
Capt'n Morgan's avatar Capt'n Morgan

Yep, just sent it to you.

Update: Mark was able to resolve my problem. It was a combination of STUPID things on my part. <slapping my own self in the back of the head!>

Great news, it works with repeet!!

       
jeremydouglas's avatar
jeremydouglas
292 posts
17 years ago
jeremydouglas's avatar jeremydouglas

I really wish there was a way to have this extension work with Relative custom fields. Can’t think of how that would work though. If anyone has a thought that would be rad.

       
Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

@jez777 I’m afraid I’m not sure what you mean by “Relative custom fields.”

       
First 9 10 11 12 13 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.