Search found 3358 matches

by velden
Wed Sep 22, 2021 5:39 pm
Forum: CMSMS Core
Topic: Menu advice... showing a page set to 'not show'
Replies: 5
Views: 113

Re: Menu advice... showing a page set to 'not show'

You could use the Navigator's showall parameter for the side menu: (optional) show_all="0" - This option will cause the menu to show all nodes even if they are set to not show in the menu. It will still not display inactive pages however. An alternative way is using one of the 'extra page attribute'...
by velden
Mon Sep 20, 2021 3:25 pm
Forum: CMSMS Core
Topic: Content not showing in Template
Replies: 1
Views: 185

Re: Content not showing in Template

Probably this will help:

Code: Select all

{content assign="main_content"}{$main_content=$main_content scope=global}
More to read: https://cmscanbesimple.org/blog/smarty-scope-examples
by velden
Wed Sep 15, 2021 5:19 pm
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 351

Re: Pass param to Custom Field by udt in LISE

Just saying I tested the code using an event.
by velden
Wed Sep 15, 2021 11:08 am
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 351

Re: Pass param to Custom Field by udt in LISE

Trivial (though possibly not for a PRESave... event):

Code: Select all

$obj = $params['item_object'];
echo $obj->item_id . '<br>';
by velden
Wed Sep 15, 2021 8:06 am
Forum: Modules/Add-Ons
Topic: SmartImage - not working for me
Replies: 16
Views: 392

Re: SmartImage - not working for me

Wild guess: differences in path related settings in config.php?
by velden
Tue Sep 14, 2021 10:14 am
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 351

Re: Pass param to Custom Field by udt in LISE

I think you may be right there and the file is moved after calling this event.

You can file a bug report of course and in the meanwhile choose another approach (e.g. what I suggested above).
by velden
Tue Sep 14, 2021 8:17 am
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 351

Re: Pass param to Custom Field by udt in LISE

I would expect the file to be there once the PostItemSave event is called. But to be sure you could use some basic PHP test the check if that's true. Another approach can be to check your custom value for the generated image, and if empty call the UDT (from the summary/detail template). That would g...
by velden
Tue Sep 14, 2021 7:16 am
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 351

Re: Pass param to Custom Field by udt in LISE

I note you're not using the GetImagePath(false) method in your code. That may be the reason it isn't working for you. Writing a value to a custom field in LISE is possible too. It may even be easier to do that in the PREItemSave event though I'm not sure if the pdf file will then already be in the r...
by velden
Mon Sep 13, 2021 6:18 pm
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 351

Re: Pass param to Custom Field by udt in LISE

Had to test but this seems to work:

Code: Select all

$obj = $params['item_object'];
$fd = $obj->fielddefs['fileupload'];
echo 'path: ' . $fd->GetImagePath(false) . '/' . $fd->value;
die();
Would be nice if you could share your final code when it works.
by velden
Mon Sep 13, 2021 3:37 pm
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 351

Re: Pass param to Custom Field by udt in LISE

Not sure I understand what you mean but passing a parameter to a UDT is quite simple: {myudt myparam='myvalue'} Inside the UDT: $myparam = $params['myparam']; That said, as you are generating a preview which probably should be a one-time event per item, you might consider using the built-in CMSMS Ev...
by velden
Wed Sep 01, 2021 1:18 pm
Forum: Modules/Add-Ons
Topic: DatePickerField in formbuilder +1 day
Replies: 3
Views: 201

Re: DatePickerField in formbuilder +1 day

Sorry to inform you that we do not allow so called code hacks to be posted in this forum.
by velden
Tue Aug 10, 2021 8:52 am
Forum: CMSMS Core
Topic: MicroTiny and Emojis
Replies: 14
Views: 738

Re: MicroTiny and Emojis

I've been doing some tests and think it may be a CMSMS issue too. We'll look into that.

You've already filed a BR so it's on the todo list to investigate.
http://dev.cmsmadesimple.org/bug/view/12462
by velden
Mon Aug 09, 2021 8:15 am
Forum: Layout und Design
Topic: DESIGN auswählen. Aber wie?
Replies: 1
Views: 321

Re: DESIGN auswählen. Aber wie?

Content pages have their own Design and template.
You have to change it there (Content Manager). Either per page or in bulk.
2021-08-09 10_11_51-Content Manager - CMSMS 2.2.14 - Brave.png
by velden
Mon Aug 09, 2021 8:09 am
Forum: Dutch - Nederlands
Topic: Kan niet bij mappen van Bestandsbeheer: 'Forbidden etc'
Replies: 4
Views: 449

Re: Kan niet bij mappen van Bestandsbeheer: 'Forbidden etc'

Als het 'plotseling' veranderd is dan gok ik op een upgrade door de hosting provider van de PHP versie en/of andere zaken. En dan denk ik dat mod_security dit tegenhoudt.
Dus ik zou bij de hosting provider informeren.

Go to advanced search