Lex is the tag parser of PyroCMS 2.0.
Questions tagged [pyrocms-lex]
19 questions
4
votes
3 answers
How do I write an 'if' statement with PyroCMS Lex tags?
Here is my 'if' statement in a loop. Sometimes the description will exist and sometimes it will not. But all I am getting is the word LIKE and not ME when the description actually exists.
{{ description }}
{{ if description }}
ME
{{ endif…

mattbrill
- 51
- 8
4
votes
1 answer
Third Level Navigation in PyroCMS Navigation bar
I am having some trouble making a third level navigation bar in PyroCMS, I have not two levels working fine but for some reason it won't let me look through the {{ navigation }} array twice.
This is what I currently have:
{{ navigation:links…

Allister
- 851
- 3
- 10
- 21
1
vote
0 answers
Pyrostreams Filter Table with Form
I am displaying data in a table using {{streams}} and page types and would like to filter and sort the data.
There are no tags to automatically generate filters. However, I can auto generate a {{ form }} for inserting a stream record and - an input…

Bryan
- 17,201
- 24
- 97
- 123
0
votes
1 answer
Lex Parser & CodeIgniter, conditionnal weird behavior
I'm using lexpyrocms parser as a package installed with composer along with a codeigniter framework with HMVC, which allows me to use {{pseudo-variable}} in my templates/views.
I have a very weird behavior with the parser syntax in my view:
I have…

Renard Masque
- 73
- 1
- 11
0
votes
1 answer
Pyrocms, stream on where clause
I use pyrocms to develop a site. I need to use stream for a view. I would like only the entries corresponding to the current user to be displayed.
I use the following query (user_id is name of the field on my database)
{{ streams:cycle stream="{{…

user1776726
- 1
- 3
0
votes
0 answers
PyroCMS Language Tag to display the language code
I'm using PyroCMS Pro 2.2.6. I created in a PyorCMS Stream a language field which I would like to use in my template to display the language code (en, de, fr, etc.):
I tried many different tags like:
{{ web_language }}
{{ web_language:name }}
{{…

flip
- 97
- 3
- 14
0
votes
1 answer
Using pyrocms and jquery.load()
I'm fairly new to pyrocms and php in general. In pyrocms, you can create html partials and then in the pyro page you can call that partial like so
{{theme:partial name="my-partial"}}
which will call my-partial.html that sits inside the…
user1752532
0
votes
1 answer
0
votes
1 answer
Pyrocms Field type usage
How to create text input field in pyrocms ? I read this API http://docs.pyrocms.com/2.1/manual/field-types, but didn't understand how to create input field in my theme layout
I tried like this in my layout, output is nothing
This is my…

user3637224
- 585
- 1
- 3
- 22
0
votes
0 answers
Echo a title or a custom field with PyroCMS
What I trying to do is to echo the title if a custom field is empty.
{{ if custom_fields:alternative_title != "" }}
{{ custom_fields }}{{ alternative_title }}{{ /custom_fields }}
{{ else }}
{{ title }}
{{ endif }}
This code didn't…

Claudio Ɯǝıs Mulas
- 1,116
- 3
- 15
- 24
0
votes
1 answer
PyroCMS - Pagination won't display on blog module
I'm having some serious trouble getting the pagination to show up on the standard blog module. It's is included as {{ pagination }} with all the included themes, however it seems that count is set to 25 on the back end, and whenever I add a…

Afs35mm
- 549
- 2
- 8
- 21
0
votes
1 answer
How to load pyrocms Plugin within the theme
I'm creating a plugin, that is return an array. This how my files structure
myplugin.php
class Plugin_myplugin extends Plugin
{
function foo()
{
return array(1,2,3,4,5);
}
}
In the default.html file, I can access it via {{…

KKK
- 1,652
- 7
- 29
- 49
0
votes
2 answers
Display images in PyroCMS depending on its {{ name }}-tag
I need to display some images from a folder depending on its {{ name }}.
The names of my files look like this:
foo.jpg
foo_blur.jpg
bar.png
bar_blur.png
Now I need to do something with the blurred-image. This is what I tried, but no success:
{{…

yckart
- 32,460
- 9
- 122
- 129
0
votes
1 answer
PyroCMS Tags in Arrays
I am using CodeIgniter with PyroCMS in my work as a website developer. Some colleagues who have used Pyro much longer than I have are using the Pyro tags a lot. They seem extremely useful, even if I don't have a clue how they work yet. Anyway, I was…

trysis
- 8,086
- 17
- 51
- 80
0
votes
2 answers
Why won't js assets combine / load with PyroCMS in production?
{{ asset:js file="theme::custom.js" group="default" }}
{{ asset:js file="theme::app.js" group="default" }}
{{ asset:render_js group="default" }}
{{ asset:render_js group="modules" }}
That's my code for my JavaScript, but when I load in production,…

Shamoon
- 41,293
- 91
- 306
- 570