View Issue Details

IDProjectCategoryView StatusLast Update
6112Composr documentationGeneral / Uncategorisedpublic2025-01-09 06:11
ReporterAdam Edington Assigned ToGuest  
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary6112: Advanced tutorial for {$SET} and {$GET}
DescriptionI imagine that a lot more can be done using these values. I have some Gallery videos which are using these values to provide a link to the equivalent Facebook videos. There are some empty {$SET} values and it would be great to know the code to provide a list of Videos which are not on Facebook (hence need uploading) and vice versa. I think this would be a good example in general, if it is indeed possible.
TagsNo tags attached.
Attach Tags
Attached Files
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

PDStig

2025-01-07 14:52

administrator   ~9773

I'm assuming an empty value means it needs uploading. So you can just use an IF_EMPTY directive on the value.

{+START,IF_EMPTY,{$GET,some_value}}Show something to indicate it needs uploaded{+END}
{+START,IF_NON_EMPTY,{$GET,some_value}}This video exists on Facebook{+END}

Adam Edington

2025-01-09 05:58

administrator   ~9778

Last edited: 2025-01-09 06:08

I have it working on the gallery videos already, with the ($SET} in the video descriptions and the {$GET} in the templates, because custom catalogue fields are impossible to reference. I am referencing alternative sources other than YouTube and I can see them when viewing the actual video. That bit is done.

I was wondering if there was a way to output the Facebook videos with an empty {$GET,FACEBOOK_ID) on a Comcode page (in a list) using these values somehow, Not sure if it's possible to dp that, not sure if these values are global. Maybe they are limited to the scope they exist in. Maybe a Symbol would do it. I have no clue, hence asking if it's possible to make an advanced use of these Tempcode variables, if so, I think that would useful to tutorialise.

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change
2025-01-07 06:48 Adam Edington New Issue
2025-01-07 14:52 PDStig Note Added: 0009773
2025-01-09 05:58 Adam Edington Note Added: 0009778
2025-01-09 06:03 Adam Edington Note Edited: 0009778
2025-01-09 06:08 Adam Edington Note Edited: 0009778
2025-01-09 06:11 Adam Edington File Added: Screenshot_9-1-2025_6931_mediafeeder.net.jpeg
2025-01-09 06:11 Adam Edington File Added: Screenshot_9-1-2025_61056_mediafeeder.net.jpeg