Jump to content

Marty Walker

Members
  • Posts

    629
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Marty Walker

  1. I know everything is pretty locked down for this version (2.6) but I wonder if this could be a consideration for a future release. And that is: when adding a new template and using 'duplicate fields used by another template' there could be an option to also copy the field widths too.

    • Like 3
  2. Hey Antti,

    Is there a trick to getting PageTable to work with Fredi? A PageTable field will display but if I hit 'Add New' I don't get another window.

    I would really like to use PageTable instead of repeater fields.

    Edit: I've tried changing the z-index values in Fredi's modal.css but no go.

  3. Hi Adrian,

    I'm wondering if it's possible to use this with Form Builder - which I've set to automatically create pages from submissions. When I set up a rule to only look at the page template (of the page being created) and two image fields my FB form starts to give me server 500 errors. If I remove the rule my FB form starts working again.

    Cheers

    Marty

  4. This is one way - I got this from someone in the forum (can't remember who, sorry).

    Create an integer field called 'views' and add it to your template along with this code in your template file. You can then add that field to visible in your page list: under the Advanced tab in your template.

    <?php
    if($user->isGuest()) {
        // Count page views only if guest
        $page->views += 1;
        $page->of(false);
        $page->save('views');
        $page->of(true);
    }
    ?>
    
    
    • Like 3
  5. Well it's been a while since I've been stuck on something and when I am it consistently appears to be with dates.

    I'm working on site for a cinema. Each movie has it's own page with a start and end-of-run date and a repeater field for session times.

    Screen-Shot-2015-03-27-10-14-50.png

    --

    Screen-Shot-2015-03-27-10-09-17.png

    So that's all fine and well for the individual movie pages.

    BUT I'm struggling with request of theirs to group all the movie sessions under days. eg:

    Friday 27th:

    Birdman: 2pm 5pm 7pm

    Theory of Everything: 3pm 4pm 8pm

    etc

    If I try to output all the start dates I get multiple days (of course, because there are multiple movies on each day).

    So I'm trying to work out how to limit the output of the days to one instance and then list all the movies and session start times underneath that.

    No point showing any code because mine is ass-about.

    Thanks for any help

  6. Hello,

    I have a client that needs to be able to embed tweets into a ckeditor body field. I've turned ACF and HTML purifying to off. All I get is the embed code block wrapped in a <p>:

    <blockquote class="twitter-tweet" lang="en"><p>You can pursue photography for the pure enjoyment of it. No fine art photography ambitions necessary. You'll be ok.</p>— Bryan Formhals (@bryanformhals) <a href="
    
    ">January 4, 2014</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

    I've tried throwing jQuery to unwrap the blockquote from the <p> but no go either? How do I do it?

  7. @justb3a I think what @JoZ3 might mean is can this field be used to select an image from a multiple image field and use it on another page? For example (I think) he wants to use an image from a field on a product page on the home page but the image he wants is (fro example) the fifth one down in a field.

    • Like 1
  8.  At least it's really interesting to see how others feel about this topic.

    In most cases I can convince a client that pooling images into a gallery is best done at the end of a page. But increasingly I'm getting requests to thread galleries into article copy. The times I've gone the hannacode route clients just roll their eyes with that "really?" look. And further looks of dread when I try to explain  that 'image 1' is actually 'image 0'.

×
×
  • Create New...