Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
NicolasG 🇫🇷 Member
@nicolasG · Joined 8 years ago · 15 posts · 7 topics · 0 reputation
Badges
Recent posts
-
Get $1 route value regex on twig template file
· 5 years ago
Hello, I would like to get the $1 $2 regex values of my route directly into my twig template. Is this possible ? i.e : // routes /annonce-.+-(\d+) : /annonce // annonce.html.twig {% do getInfos( m
-
Multiple Regex-Based aliases , same page cache
· 6 years ago
Hello How can I not have the same cache with Regex-Based aliases. Each wildcart allow me to filter on an element of the frontmatter with a collection hook. The problem is that if I enable the cache, d
-
How to filter to specific folder collection and a custom header field
· 6 years ago
Finaly is possible with hooks... public function onCollectionProcessed(Event $event) { /** @var Collection $collection */ $collection = $event['collection']; if ($infos = $this->isBar
-
How to filter to specific folder collection and a custom header field
· 6 years ago
Hello, I can't filter on both a folder and a custom header field (or even taxonomy). Either it takes the taxonomy, or the folder, I've never been able to do both at the same time even though it's in t
-
How to change the slug of an article without folders
· 7 years ago
Hello, Is it possible to remove the concept of folders when using the "slug" frontmatter's parameter? When I use it, it only changes the part after the folders, I would like it to change the whole url
-
How to include a twig variable in a twig variable ? (on a config yaml file)
· 8 years ago
I didn't know where to put "Twig_Extension_StringLoader", your answer provides the solution, perfect, thank you very much! Now, it opens a debate on the solution to be adopted... Let me explain: Eithe
-
How to include a twig variable in a twig variable ? (on a config yaml file)
· 8 years ago
Hello, I wish create some text with variables like : // config/annonces.yaml region: "My region" // config/news.yaml presentation: My text blablabla <em>lbablaba {{ config.annonces.region }}&l
-
What is the best solution for record content text for dynamic pages (doesn't exist in folders)
· 8 years ago
Thank you for answering. I am a developer, I made the following code for create and read the good file for every pages. It works, but I do not find it very clean, and quite rigid. And I do not exploi
-
What is the best solution for record content text for dynamic pages (doesn't exist in folders)
· 8 years ago
Hello, I have some dynamic pages generated through slug url (/city-[a-z]+) , then I call an API for retrieve content to this ID (somes real estate ads). I would like add specific text for each page bu
-
[SOLVED] How to generate fake url /item-XXX or item/XXX for the same page?
· 8 years ago
@pamtbaau: This line is not really necessary. You can reuse $this->annonceId , which has been assigned in ‘onPluginsInitialized’ using the preg_match statement. ‘preg_match’ assignes the resulting