Hi there,
I am also looking for the same way to find the root page to which the current Content Element associated in Backend.
\PageModel::findPublishedRootPages(); will give you all the...
Type: Posts; User: tsarma
Hi there,
I am also looking for the same way to find the root page to which the current Content Element associated in Backend.
\PageModel::findPublishedRootPages(); will give you all the...
Thank you very much, yours solution seems working. I've here a test link
https://regex101.com/r/hb02dk/1
How can I select every a in a text, but not adjacent a's appearing before it. For example all bold a from the string below
a bcda bbba bxyaaa aaa abbb baaaabazsrbbaba baaaa
With this regex...
Good catch, thanks for your input.
When you are upgrading Contao 3.5 installation to Contao 4.4, you may be left with old table collation "utf8_general_ci" instead of new collation "utf8_unicode_ci" used by Contao 4.4. With the...
Thanks, but I'm not able to solve it.
No, not working with
RewriteRule ^$ %{ENV:BASE}/index.html [L]
as you pointed out after.
RewriteRule ^(.*) - [E=BASE:%1]
Url structure is like ->...
Thanks for posting complete .htaccess.
How? This is actually I wanted to know.
# Rewrite all other queries to the front controller.
RewriteRule ^ %{ENV:BASE}/app.php [L]
Having above line in standard contao4 installation .htaccess file breaks the default behavior of a...
Delete "web/files/some-folder" and create symlink again.
At the moment, I can't install metamodels/attribute_text are we supposed to use only MetaModels/attribute_longtext?
Thanks
Sorry, I mean MetaModels 2.1 with Contao 4
When will be MetaModels 2.1 release to try?
Hi there,
I wanted to change some settings in tcpdf.php. In Contao 4 'system/config/tcpdf.php' is a smylinked from 'vendor/contao/core-bundle/src/Resources/contao/config/tcpdf.php'. How can I...
After having watched https://www.youtube.com/watch?v=BXVqORbN16Q and https://www.youtube.com/watch?v=34R7buoM_cc, By the way thanks for Andreas Schemp & Christian Schiffler.
I tried to create a...
I have put my local bundle (Demo.zip) under /src folder. Although I've defined Plugin class inside this bundle, it is not loading. No error or nothing. I'm expecting a new Content Element in Backend,...
That's it then! Thanks for the information.
I am getting an error message "Could not find package contao/standard-eidtion with version 4.5.6", thus I can not install contao 4.5.6 locally. Any suggestions are welcome.
What I have done is
...
I am facing the same problem!!
Why you wanted to do that. It is automatically added to sitemap.xml
If you still wanted to do that, create a page (external url) and link to the detail page.
Thank you very much, it helped!
Hello folks, I've installed a Contao 4.4.8 Managed edition with contao-manager.phar on my local machine.
Then I've copied with ftp all files from my local installation to my hosting. Now I can not...
I have opened an Issue and suggested a workaround here
https://github.com/contao/core-bundle/issues/885
Just for the record
I have now tried to install Contao 4.4.0 on external hosting server (hostpoint). Again I am confronted with exactly same problem. Can't figure out!!!
I was able to install and run Contao 4.3.10 with the same conditions on the same machine. Now what could be causes!
Did you managed to install Contao 4.4.0 by the way, without the same problem I am...
Hi there,
Yes Tables are created actually in the first run. But unlike usual which says "The database is up to date". CREATE TABLE sql remained checked all the time and hence the problem.
I installed Contao 4.4.0 files, with composer
composer create-project contao/standard-edition <target>
Not to mention I have set up Virtual Host and website root is set to /web folder
When...
Use this piece of code inside your template (in your case ce_image.hmtl5) to see what all variables are available for you to use.
<?php $this->showTemplateVars(); ?>
Hope it helps
It works now.
Why not download the installation provided and try it your self
Did you update all the dependent modules? for example haste...
Can some one tell me, what is wrong here -> https://github.com/contao/core/commit/88bfef11a34a5c50e249792a188118ca61e0ceeb with
while ($objSubpages->next())
which Leo has changed to
...
Can some one please explain how the simple token ##document## is converted to a file path?
Inside \StringUtil parseSimpleTokens() function there is a block of code, what and how does it do the...
Thank you for the info and links.
I need to study more about Event-Dispacher concept and how to used it.
Just protecting the pages should be enough, as you might have thought of.
MetaModels classes are loaded with composer autoload. How can I override such classes from my own module folder, so that it remains update save.
For example: I wanted to override MM class ->...
Although this thread is relative old. May be somebody is still looking for more information. I have set up a demo website with MetaModels Frontend-editing function, hope you may find it useful....
No, i wouldn't delete those files. I just wanted to know that these files are not used at all if no autoload is defined in composer.json
Hi there,
thank you for the answer. So that mean it depends on autoload settings in the composer.json file.
So when you say, "if an extension has defined autoload information in the...
When I install modules with composer client, then modules files are installed inside normal "./system/modules" folders and also under "./composer/vendor/" . Thus there are 2 copies of modules files...
Thank you
I have read here
http://metamodels.readthedocs.io/en/latest/manual/install.html
done this
$ composer require metamodels/bundle_all
but I got this
Using version ^2.0 for...
Solved:
The question was irrelevant, when setting is done correctly.
After reading through these two thread:...
I am using datatrans payment gateway, Contao 3.5.14, Isotope 2.3.5 plus changes from https://github.com/isotope/core/pull/1640
In the checkout process, after having paid with cerdit card, i was...
Hi,
how can I overwrite class "Isotope\Model\ProductCollection\Cart", real path is "isotope/library/Isotope/Model/ProductCollection/Cart.php". Is this possible by the way?
Thank you
Hi Andreas,
That was a useful tips.
I've defined a new $GLOBALS['ISO_HOOKS']['generateProduct'] and with that I've added a new template variable (previleged). Thus I can use
<?php if...
Members of some group may see the price only after a login. How can I set up this restriction.
With code below, I can hide price in general if some one is not logged in. But there is no group...
There was typo mistake in simple tokens I've used. After correcting it from https://isotopeecommerce.org/de/handbuch/v/2.3/r/simple-tokens.html I can place order normally and it sends email.
Fatal error: Uncaught exception RuntimeException with message The registry already contains an instance for tl_iso_address::id() thrown in system/modules/core/library/Contao/Model/Registry.php on...
I have a related product list, on the product's reader page. It works as expected.
In related product list, I have also listed the main product, so that it also shows under the related products....
SOLVED:
My bad..... grrr .... I have placed a product reader module in layout. By removing that it solved!
Some more details:
In the backend log it says:
No active page for page ID "110", host "127.1.1.1" and languages "de-DE, de, en-US, en" (http://127.1.1.1/index.php/checkout/address.html)
...
I have
Contao 3.5.4
Isotope 2.3.1 Build 3
Somehow I can not get to page on which I have placed isotope checkout module. Php script time outs and can't complete an order or go beyond checkout.
...
Yes yours one works too, may be in fact more compact and faster.
$objThis->Template->level = ' plevel_' . ($level - 1);
HI buddies, thanks for nice ideas. But I've solved it with HOOKS
Insde Config
$GLOBALS['TL_HOOKS']['generatePage'][] = array('myclass', 'get_parentPageInfo');
Inside myclass
Is there a way to find the level of Page from the site structure with php?
An example structure:
website root A (level_0)
- Page B (level_1)
-- Page C (level_2)
I wanted to add...
I have setup an attribute of type FileTree (which is restricted to only images jpg/png).
In stead of listing file paths in ul list elements, I wanted to show Images in the frontend. So, how can I...
As far as my understanding, I don't get information/variable about layout section in template. Presently I am doing as you have suggested with 2 modules (In my case, I have 2 custom navigation module...
Thank you for your answer, your approach is only applicable to the rendered output in frontend with CSS or Javascript.
What I wanted is something more before that, in the template rendering time,...
Lets assume I have a module (navigation)
Is there any way, I can find where in which section this module is placed, whether it is placed in #header or #footer ?
I wanted to change $this->cssID...