caterhamcomputing
Forum Replies Created
-
Forum: Plugins
In reply to: [CC Child Pages] Problem displaying Sibling PagesHi Karif.
Yes, this should be sorted for sibling pages … I’d be grateful if you could confirm that this is working for you so that I can mark this topic as resolved.
Thank you for using CC Child Pages …
Forum: Plugins
In reply to: [CC Child Pages] Randomize and limit count of sibling pagesHi … The new version has just been released. You can now set
order="rand"…I hope this helps.
Forum: Plugins
In reply to: [CC Child Pages] Possible to Display Date?I have just released a new version of the plugin which includes the parameters
show_author,show_date_createdandshow_date_modified… just set them to"true"to display:[child_pages show_author="true" show_date_created="true"]I hope this is helpful.
Forum: Plugins
In reply to: [CC Child Pages] CSS hook for current pageThe new version of the plugin has just been released.
The classes
active,current-pageandcccurrentare now added to thechildpage<div>when displaying the current page.I hope that this helps.
Forum: Plugins
In reply to: [CC Child Pages] Changing the active class color for child menu pages titleThe new version of the plugin has just been released.
The classes
active,current-pageandcccurrentare now added to thechildpage<div>when displaying the current page.I hope that this helps.
Forum: Plugins
In reply to: [CC Child Pages] show html from child pagesThe new version has just been released. You can now use
[child_pages show_page_content="true"]to show the complete content of the page … you’d probably want to setcols="1"too, I would guess 🙂Forum: Plugins
In reply to: [CC Child Pages] can use_custom_link be set to a different targetThe new version of the plugin has just been released containing the
link_targetanduse_custom_link_targetparameters. See the description for full usage details.I hope this helps.
Forum: Plugins
In reply to: [CC Child Pages] Nesting Child PagesI have released the new version of the plugin … sorry it has taken so long, but other commitments have kept me from working on this for a while.
You can now use the
depthparameter for the shortcode outside oflistmode … sub-pages are listed as an unordered list at the bottom of the child page. You can specify a title for this section using thesubpage_titleparameter.[child_pages depth="5" subpage_title="Sub-pages"]Forum: Plugins
In reply to: [CC Child Pages] Problem displaying Sibling PagesThe new version of the plugin has been released today. It will now remove any
[child_pages]shortcodes prior to creating the excerpt, which should avoid creating infinite loops …Forum: Plugins
In reply to: [CC Child Pages] Add title to listThe new version of the plugin has been released … hopefully this should meet your requirements.
Forum: Plugins
In reply to: [CC Child Pages] Add title to listThis is a great idea, and I have added it into the new version that I am preparing for release. A tick box will allow you to select to show the title of the parent page (unless there is no parent page – e.g. when showing sibling pages at the top level, or when show all pages has been ticked).
Hoping to get this out today.
Forum: Plugins
In reply to: [CC Child Pages] Link Full DIV not just Title and More… oops, left some testing code in the javascript above. Remove the line that says:
alert('Click');… so the full function should read:
function cc_custom_js() { ?> <script> jQuery( document ).ready(function() { jQuery(".ccchildpage").click(function() { window.location = jQuery(this).data("cc-link"); return false; }); }); </script> <?php }… you would probably also want to add some CSS to display an appropriate cursor to indicate that the area is clickable.
You could add the following to the Custom CSS in the settings for the plugin (Settings->CC Child Pages from the Dashboard):
.ccchildpage { cursor: pointer; cursor: hand; }- This reply was modified 9 years, 5 months ago by caterhamcomputing.
- This reply was modified 9 years, 5 months ago by caterhamcomputing.
Forum: Plugins
In reply to: [CC Child Pages] Link Full DIV not just Title and MoreYou could use something like the following added to your theme’s functions.php file … but it could cause issues if any links are generated by the shortcode (as it is invalid to have nested links).
// Add action links for plugin add_filter( 'ccchildpages_inner_template', 'change_inner_template' ); function change_inner_template () { return '<a href="{{link}}"><div class="ccchildpage {{page_class}}"><h3{{title_class}}>{{title}}</h3>{{thumbnail}}{{excerpt}}{{more}}</div></a>'; }… a better solution may be to add a data attribute to the div and use some javascript to open that link when the div is clicked:
// Add action links for plugin add_filter( 'ccchildpages_inner_template', 'change_inner_template' ); function change_inner_template () { return '<div class="ccchildpage {{page_class}}" data-cc-link="{{link}}"><h3{{title_class}}>{{title}}</h3>{{thumbnail}}{{excerpt}}{{more}}</div>'; } add_action('wp_head', 'cc_custom_js'); function cc_custom_js() { ?> <script> jQuery( document ).ready(function() { jQuery(".ccchildpage").click(function() { alert('Click'); window.location = jQuery(this).data("cc-link"); return false; }); }); </script>'; <?php }… of course, I’d recommend creating a separate javascript file and enqueuing it properly – the above is purely for guidance.
Forum: Plugins
In reply to: [CC Child Pages] Order list by menuI am assuming that this issue is resolved, as I have not heard back from you.
If you are still having problems with the plugin, please let me know in as much detail as possible so that I can investigate further.Forum: Plugins
In reply to: [CC Child Pages] CC’d content not updating with source.I am marking this as resolved as I have not heard back from you.
If the problem is still apparent, please let me know and supply further details as requested … I will then be able to investigate further.