Simple flex project

copied from xmas tree post with some examples of use

project download - elementsapp://downloadDocument/VMJYupivwNIK

very basic convert to blog list page

1 Like

more concept flex layout CMS, still working on, ignore blog page just for show

project download - elementsapp://downloadDocument/rJse4ywLUuDn

lot of bits in the twig file, still experimenting

project - elementsapp://downloadDocument/u2Y8adApCQDu

ok 2nd blog section uses featured so the main blog list post is much larger than the rest of the blog posts, did post this before, but the link is on the entire area

1 Like

Too bad, I can’t load the project to learn what you’ve learned.

@upssjw Can you re-share the project? It looks like you might have removed it already :sob:

not learnt anything, just messing with layouts, I have a small piece a code, very basic, in for Float never added controls as it was just concept to see how it work with CMS images and typography

I am trying to get to a template, I think is good for my site, not there yet, it wouldn’t be this colourful

you can just turn all into a plain site eg surface 200 surface 900 colours

I will leave up for a few hours, I have no room especially videos

project download - elementsapp://downloadDocument/uE0Ua19eT5HS

Thanks.

Something for your twig etc.html:

{{ item.body|striptags|split(' ')|slice(0, 32)|join(' ') ~ ' ...' }}

This is to show the first 32 Words and striptags remove any html-tags. The inital idea is from @Pegasus

@dan Is this something for documentation?

Nice will add that

Will add it now!

Edit: Added here - Twig | CMS | RapidWeaver Elements Docs

Let me know if you have another other examples that would be useful for Twig and I’ll add them :wink:

{{ random(['apple', 'orange', 'plums', 'citrus']) }}

I like this one, just refresh page

now if only ‘random’ could choose an image from a number of images??? ?

1 Like

ok just got home from work had to try the twig random, I reset my colourful CMS to more plain colors, with all my changes I have messed up somewhere in the page but going to delete this now anyway

project download - elementsapp://downloadDocument/rNB1zTO5z1V2 last time completely delete tomorrow

lot more in the twig etc file