View Issue Details

IDProjectCategoryView StatusLast Update
0006112Composr documentation[All Projects] General / Uncategorisedpublic2025-01-09 06:11
ReporterAdam EdingtonAssigned To 
SeverityFeature-request 
Status non-assignedResolutionopen 
Summary0006112: 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.
Time estimation (hours)
Sponsorship open

Activities

Patrick Schmalstig

2025-01-07 14:52

administrator   ~0009773

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   ~0009778

Last edited: 2025-01-09 06:08

View 3 revisions

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.

Adam Edington

2025-01-09 06:11

administrator  

Issue History

Date Modified Username Field Change
2025-01-07 06:48 Adam Edington New Issue
2025-01-07 14:52 Patrick Schmalstig Note Added: 0009773
2025-01-09 05:58 Adam Edington Note Added: 0009778
2025-01-09 06:03 Adam Edington Note Edited: 0009778 View Revisions
2025-01-09 06:08 Adam Edington Note Edited: 0009778 View Revisions
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