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
Formatting the Excerpt's
Status: closed
January 24, 2010
2:09 am
iamglenn
Guest

Hello,

I'm editing the DCG plugin to have a dynamic team roster.

URL: zlogblog.com/about/team/

Is it possible to keep the formatting on each person's description during the "slideInfoZone" call, images & everything? So basically the description would load just as each player's page in a new window.

Thanks,
Glenn

January 24, 2010
3:09 am
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Glenn,

Sorry, I'm not quite following you. You're using the Auto Slide Pane descriptions, and you want to know if this can be modified to preserve the formatting of this text as it appears in the original post?

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
January 24, 2010
3:53 am
iamglenn
Guest

Ade said:

Glenn,

Sorry, I'm not quite following you. You're using the Auto Slide Pane descriptions, and you want to know if this can be modified to preserve the formatting of this text as it appears in the original post?


Hi Ade, Thanks for replying so quickly. 

Exactly, sorry for the confusion. Just to be clear, I'm pulling pages instead of posts or categories.
Here is an example page I would like to load: http://zlogblog.com/about/team/chris-clappe/

January 24, 2010
9:30 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Ok, understood.

No idea if this will work, but try it and see. Add this to your theme's functions.php:

add_filter('get_the_content_limit_allowedtags', 'zlogblog_custom_text');
function zlogblog_custom_text() {
    $output = '<p><ul><li>';
    return $output;
}

To allow other HTML tags, add them to the list shown above in the same format.

Assuming this works, you will have issues if the description length is cut before a closing tag. FF etc will probably cope, IE won't, and your layout will be a disaster.

You will probably need to add some CSS somewhere too.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
January 25, 2010
9:27 am
iamglenn
Guest

Thanks for your help Abe that seems to be working, I'll add the tags and get the formatting right. Also, I'll check out IE and debug in older browsers just in case.

Cheers.

Glenn

January 25, 2010
9:32 am
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Great! Glad it worked. Smile

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

Most Users Ever Online: 28

Currently Online: nloronacele
14 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)