hus_hmd Registered Developer

  • Male
  • from Dubai
  • Member since Jan 27th 2019
  • Last Activity:
Posts
135
Likes Received
37
Points
772
Profile Hits
250
  • hus_hmd

    Replied to the thread Adding a video block to Blog.
    Post
    There's no video field type. You'd use the file field type for this. Alternatively, you can use the YouTube field type.
  • hus_hmd

    Post
    I think shortcodes don't work in the Events app. See Drew's comment.
  • hus_hmd

    Thread
    Hello,

    Not sure whether the indexing mechanism is going to change in v4, but if it remains the same, it may be a good idea to have the no-index attribute supported by default. This would give developers greater control on what gets indexed when…
  • hus_hmd

    Replied to the thread Unpublish pages?.
    Post
    Yes, you can do this with page attributes and a little bit of PHP: https://grabapipit.com/blog/drafting-at-the-page-level

    If you prefer to write less PHP you can install the Pipit app and use the pipit_perch_user_logged_in() function:

    (Code, 6 lines)

  • Thanks so much Hussein, changing the route slug instead of blogslug has fixed it!

    I tried adding the blogslug token to runway.php but it didn't work, although my local version is still working away happily using blogslug without the custom token being…
  • hus_hmd

    Post
    Is the token blogslug defined in your /perch/config/runway.php?

    I suspect you don't really need the custom token for this slug format, so you may be able to use slug instead of blogslug.
  • hus_hmd

    Replied to the thread Editting Perch app files.
    Post
    If it's something you can do with CSS and/or JS, you can look into UI customisation.
  • hus_hmd

    Replied to the thread Editting Perch app files.
    Post
    Hello Mike,

    What sort of changes do you want to make?
  • hus_hmd

    Post
    Happy to help. Yes, please do update us!
  • hus_hmd

    Post
    Hi James,



    Product customisation
    If the flavours do not affect the pricing, product customisation could be a good solution for this so you can customise each pack. Unfortunately this feature is not yet available in Shop.


    Product options/variants
    I…
  • hus_hmd

    Replied to the thread Field Group Not collapsing.
    Post
    Hi,

    I fail to see how this would be helpful to the editor. When an editor adds a new block, I think it makes sense to display the fields to them right away.

    And blocks are already collapsible. You cannot set them to be collapsed by default though.
  • hus_hmd

    Post
    Hi Paul,

    (Quote from paulweb)


    Redactor is a third-party product. Even their official Imagemanager plugin does not let you add these attributes.

    If you prefer to use the Imagemanager plugin so the images are displayed inline rather than shortcodes, you…
  • hus_hmd

    Post
    Hi,

    (Quote from LisaM)


    You would use the editor-config attribute for this.

    (Code, 1 line)


    You can access the value of the editor-config attribute in your custom configuration file:

    (Code, 8 lines)

  • hus_hmd

    Replied to the thread Unable to Login.
    Post
    Hello,

    It's likely that your web host has upgraded to PHP 7 while you're using an old version of Perch. More information on this can be found on the Perch Blog.
  • hus_hmd

    Like (Post)
    Fantastic, I set only the format of the date in the variable in the kind of your example and it works.
    Thank You! :))
  • hus_hmd

    Replied to the thread Perch CMS vs. Couch CMS.
    Post
    Hi Daniel,

    Is there anything specific you would like to know about Perch in order to be able to compare the two products better?

    You can watch the video tutorials which could give you a better idea on what it's like to develop a site with Perch.
  • hus_hmd

    Post
    Hi,

    It looks like you're using nav-group instead of navgroup.
  • hus_hmd

    Replied to the thread filter by date.
    Post
    The format you need for filtering does not have to match the date format in the template. It needs to match the format in the database.

    Does the following format work for filtering?

    (Code, 1 line)

  • hus_hmd

    Replied to the thread filter by date.
    Post
    You don't need to have the filtering logic in PHP and the template. That is, you don't need the conditional tag perch:if if you are filtering with perch_content_custom().

    Also, your $today variable shouldn't have quotes around the date() function. It…
  • hus_hmd

    Replied to the thread Tracking purchases.
    Post
    Hello,

    perch_shop_checkout() handles failed payments too.

    I think the ideal approach would be to write a Perch app that listens to the event Perch Shop fires when an order was successfully paid for. You can learn more about event hooks in the…