-
Posts
382 -
Joined
-
Last visited
-
Days Won
2
Posts posted by zoeck
-
-
On 1/10/2023 at 10:27 AM, bernhard said:
It's just the missing renderIf() or early exit feature that I lose when using {include ...}. But using {include ...} is necessary to get a meaningful latte panel.
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}
- 1
-
55 minutes ago, bernhard said:
I could use {include ...} instead of $rockfrontend->render(...), but the non-existing early exit is really a show-stopper for me. Do you have any other approach to that?
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...1 hour ago, bernhard said:but I was asking for benefits other than that?
I think currently you only have this benefit 😄
- 1
-
10 hours ago, bernhard said:
What are actually the benefits other than to get a list of rendered latte files?
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.
- 1
- 1
-
9 minutes ago, da² said:
Check in your template > Advanced tab > List of fields to display in the admin Page List
Or Check this Post from bernhard:
(Important: only works with the new master version 3.0.210 😉)
- 3
-
Have a look at this Thread and/or Module 😉
https://processwire.com/talk/topic/2458-module-fieldtypeconcatenate/
- 1
-
<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 😉
- 3
-
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…
-
54 minutes ago, bernhard said:
If you find it out I'm happy to add it to the module 🙂
Okay then I'll have a look at it, I hope it's not that difficult to implement 😉
- 1
-
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 😉 -
30 minutes ago, gebeer said:
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? -
Config() is your Problem 😉 (it’s only available when the functions api is activated)
<?php echo $config->urls->httpRoot; ?>auction_longpolling.php
- 2
-
22 hours ago, Markus Thomas said:
🙋♂️ I would leave a beer from Franconia for the module 😉
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 😉
-
6 hours ago, Stefanowitsch said:
This should be no permanent fix though...
Just have a Look in the Core modules and install the Clone Core Module…
This should solve your problems 😉 -
Quote
site/modules/ProcessPageClone/ProcessPageClone.module
This looks strange, because ProcessPageClone should be an "Core Module" inside of the wire folder, not site folder: "\wire\modules\Process\ProcessPageClone.module"
-
38 minutes ago, Frank Schneider said:
But I'm looking for an editor where you don't have to edit the HTML code. I'm looking for an editor like a CMS.
CMS is the wrong word for it - you mean "WYSIWYG Editor" or "Pagebuilder" (CMS = Content MANAGEMENT System)
I think if you don't want to write HTML (or PHP), then Processwire is not the best choice for you.
- 3
-
Eventually it's a bug in PW 3.0.200 - have a look at this thread:
- 1
-
Im not sure, but you can activate the pagination inside of the „admin“ (System) Template.
-
1 hour ago, Heinz said:
The user has to be logged in to the admin part of PW to create a new page as a child of an other page just
to enter some info ?You can also create a form in the frontend, but then you have to "build" it yourself.
Or you can use the paid module "FormBuilder", with which you can "build" your own forms in the admin and also create new pages via these forms (in the frontend).
There isn't just one way of doing it 😉
- 1
-
@Pete the pagination is not working
example: click ok a Tag (Germany 😉 ) and click on next…
and view more articles on the Front Pages gives a 404
- 1
-
33 minutes ago, kongondo said:
Is your site a ProcessWire site?
It’s Just a Spam Post… the Site is using Wordpress…
- 1
-
14 minutes ago, maetmar said:
I would like to avoid creating a new PHP file which I need to include, just to run one line of code.
I'm not sure, but i think you can set a variable and output it with latte (untested)
( {do} -> Executes the code and does not print anything ){do $content = 20+10 } {$content}
How to avoid trashed pages in find?
in General Support
Posted
😉