View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
6112 | Composr documentation | General / Uncategorised | public | 2025-01-07 06:48 | 2025-01-09 06:11 |
Reporter | Adam Edington | Assigned To | Guest | ||
Priority | normal | Severity | feature | ||
Status | new | Resolution | open | ||
Summary | 6112: Advanced tutorial for {$SET} and {$GET} | ||||
Description | I 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. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Attached Files | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
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} |
|
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. |
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 |