Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Request: use wordpress overrideable methods for id method
April 5, 2011
4:29 pm
davidcroda
Guest

Hi,

I should start off saying, I love your plugin! Thank you for your hard work.

The default gallery method for DCG uses a WB_Query object and built in methods get_the_title(), get_post_meta(), etc. to retrieve the post values for display. I use an additional custom plugin on my sites to replace shorttag values from post titles, and meta values and this works perfectly with this gallery method.

Unfortunately the "id method" option does not use this type of code. It has a custom query which retrieves all of the information, and is not filterable.

I was wondering if you would be open to the idea of reworking the id method to use the_loop() and similar filterable functions. I would really like to be able to continue using your plugin and avoid directly modifying any code so I can stay on the upgrade path. If you are amenable to the idea, and wanted help, I would be happy to try to rework it and provide a patch for review.

Another (possibly easier) idea would be to provide some basic filterable methods to format the title and description before display.

Thanks again for the fantastic plugin!

Dave

April 5, 2011
5:30 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi David,

Thanks for your comments. Glad you like the plugin. Smile

I agree, the ID method isn't ideal in that respect.

I'm tempted to add filters at this stage rather than re-work the query. Which filters are you currently using on the title and description? Also, which Description method are you using? (DCG Settings)

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
April 6, 2011
1:38 pm
davidcroda
Guest

Hi Ade,

Thanks for the quick response. The only thing I really need to be able to filter is the post title. I am currently filtering the_title and a number of other breadcrumb/meta related filters that don't apply. If you want to add a custom filter for the title, ie. apply_filters('dcg_post_title', $title), that would be sufficient. I just did not want to add a filter and then not be able to upgrade.

Dave

April 6, 2011
6:38 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi Dave,

That was exactly what I was thinking of. Smile

I'll put this on my to do list!

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

speedyp: 12

sjpeaches: 12

CherylMcL: 10

gscorp: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1300

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 980

Posts: 4299

Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert

Moderators:

Administrators: Ade (2493)