Textpattern CMS conditional tags:


In my previous article, I explained the most important Textpattern CMS conditional tag: `<txp:else />`. Now that’s ticked off, it’s time to get into the details of `<txp:if_individual_article>`. Conditional tags are, by their design, intended to check for one or more given conditions and then do stuff based on the findings of those checks. In the case of `<txp:if_individual_article>` the check that takes place is, as the name implies, for an individual article. Learn More

Tags: , , , , , , , , , | Posted under Textpattern | Leave a comment

Clearing User Session Data

When making changes to a user’s status or capabilities, as we diMODX logoscussed in the previous article, sometimes you’d like the changes to take effect right away. Suppose, for example, that a user selects an option that adds them to a particular user group. It’s frustrating to find that the users have to log out, then log back in before MODX will treat them as members of the group.

Adding a user to a user group can have many ripple effects. It may qualify the user for one or more new permission ACL entries, which would mean more permissions for the user (potentially, both context and object permissions). It might give the user access to resources in protected resource groups,elements in protected categories, or new Media Sources. There may also be snippets that check the user’s status with $user->isMember().

In this article, we’ll look ways to force MODX to update the user’s status immediately. Susan Sottwell played an important role in testing the code below. Learn More

Tags: , , , | Posted under MODX, MODX | Leave a comment

Silverstripe 3.1 Custom Siteconfig with slider email and more. Part 1

Over 2 parts, I will teach you how to create a custom slider on your website. I will also go through data obects so you can add other fields on your design such as Facebook URL, Google+ URL, Email, Phone number and so on.

In part 1, we will cover the Master Slide jQuery download, upload them to our website and write the custom siteconfig. In part 2, we will actually add the slider to our website homepage. Learn More

Tags: , , , , , , , , , , | Posted under SilverStripe CMS | Leave a comment