-
Posts
337 -
Joined
-
Last visited
-
Days Won
2
Everything posted by zoeck
-
And why should this be? As you can see from Berhard's example, it is possible.
-
Does the selection page then also have its own domain? Or how can it be reached, since the pages have their own domains?
-
I think if the sites should not access the same data, then it is best to use 2 individual installations. This way you are most flexible and you can use processwire "normally" π
-
Aren't these actually two separate websites that have nothing to do with each other, Apart from a common landing page? Or should page 1 be able to access data from page 2? (this is not clear from your graphic) Or just have a look at the multi site support: https://processwire.com/docs/more/multi-site-support/ (but I don't think you need that at all?)
-
page reference numbers in front of a title (admin area)?
zoeck replied to Roych's topic in API & Templates
Do you already have the numbers in the pages (as a field) that you show in the selection? Because you can change the label field in the input tab (from the page select field) to "Custom Format" and also display multiple fields. -
Just have a look at the Hanna Code Module Example π https://processwire.com/modules/process-hanna-code/ <?php namespace ProcessWire; foreach($page->children as $child) { echo "<p><a href='$child->url'>$child->title</a>"; } You are probably missing the processwire namespace in the php file π
-
[SOLVED] Repeater field tags in the Page admin interface
zoeck replied to Charlie W's topic in Getting Started
Go to your Repeater Field configuration, and then To the Details tab. thereβs a βRepeater Element Labelβ π you can use the Repeater fields for the labelβ¦ -
Looks like there is an exitIf node now π But it seems there will be no include with condition and only one template π {if $foo == 'bar'}{include 'somefile.latte'}{/if}
-
I honestly haven't even been thinking about it, but I actually had a case where I used this - without "renderIf". But this is actually more of a workaround, as I simply include an empty latte file (the "blank.latte" file is displayed in the Tracy Panel) {include $pages->find("template=test")->count() ? "test.latte" : "blank.latte"} I think that is "a bit renderIf" in latte syntax π Two templates have to be specified at all times, otherwise an error will be displayed. It would be very cool if it would also work with a single template... I think currently you only have this benefit π
-
The panel is quite interesting if you have a latte project, with layouts, different sections etc. - This makes it easy to see which files are being used. I think I use RockFrontent differently than you do π Actually, I mainly use the standard functions of Latte as described in the documentation, without "extensions" of RockFrontend (But I use the styles/script functions π). Of course, this may also have something to do with the fact that I'm still using latte for the first project. What real drawbacks do you see in the panel? Apart from the fact that it doesn't fit so well with your workflow I think I need to take a closer look at the panel again
-
Hello @bernhard, as posted in the other thread, I tried adding the Latte Tracy Bar to RockFrontend. Just Added this to the RockFrontend.module.php: // Top of the Module add the LattePanel Class use Latte\Bridges\Tracy\LattePanel; // Add inside the "protected function renderFileLatte($file, $vars)" // After "$latte = new Engine();" add this to initialize the LattePanel if($this->modules->isInstalled("TracyDebugger")) LattePanel::initialize($latte); After that you have the LattePanel in Tracy π I have not been able to detect any problems so far.
-
Or Check this Post from bernhard: (Important: only works with the new master version 3.0.210 π)
-
Have a look at this Thread and/or Module π https://processwire.com/talk/topic/2458-module-fieldtypeconcatenate/
-
<div id="content"> <?php // get all children as $child foreach($page->children() as $child) { // get all images and output the single images foreach($child->get('images') as $image) { $thumb = $image->width(250); ?> <div class='favs'> <a href='<?=$image->url?>' data-uk-lightbox="image"> <img src='<?=$thumb->url?>' alt='<?=$child->title?>'> </a> <div class='text-favs'> <span><?=$child->title?></span> </div> </div> <?php } } ?> </div> Something like this π I think you should have another look at the php foreach function how it works π
-
Is it possible to shorten the page title or make an alias for it?
zoeck replied to Boost's topic in General Support
You Can change what Field is Shown inside of the Admin Panel, you can find it in the Modules -> Core -> Page List -> Config It is also possible to change this setting for each template individually, Just Go to your template and Open the Advanced tab, thereβs a config for this π Just add a βShort Titleβ field to your template and Show it in the Page treeβ¦ -
Happy new year π and another rockfrontend question π I saw this information in the Latte documentation: https://latte.nette.org/en/develop#toc-debugging-and-tracy Is there an easy way to use this with the Tracy debugger and RockFrontend module? is it possible to add it here? https://github.com/baumrock/RockFrontend/blob/c7ac651f198f6470710b814ec50530b71dcfafb2/RockFrontend.module.php#L1443 When the templates get a bit bigger and more nested, that's definitely interesting π
-
Sorry that i hijack this post π But how did you divide the fields into 2 columns? That looks really good π Are you using "Fieldset (Open)" for this?
-
Need some help to specify path to website root.
zoeck replied to Flashmaster82's topic in General Support
Config() is your Problem π (itβs only available when the functions api is activated) <?php echo $config->urls->httpRoot; ?>auction_longpolling.php -
I hope no beer from Kulmbach π Greetings from Bamberg π
-
Looks to me like $parentdate is never set? (before $parentdateminusstart)
-
Theres also the "Combo ProField": https://processwire.com/store/pro-fields/combo/ But the ProFields are not free of charge π