Hi all,
I have:
{content block=readMoreLink wysiwyg=false oneline='true' label='Text for the read more link' default='Lees meer ...'}
in the page template. The field appears just fine, the 'default' string does not.
Any ideas why this is / how to fix it?
(Version: 2.2-beta3)
Thanks!
content block 'default' does not work
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: content block 'default' does not work
Works fine here.
Note: You may (or may not) be able to upgrade from 2.2-beta3 to 2.2.1 but please upgrade ASAP.
Note: You may (or may not) be able to upgrade from 2.2-beta3 to 2.2.1 but please upgrade ASAP.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: content block 'default' does not work
Yeah, just saw. Will upgrade tonight. It's only my sandbox to evaluate 2.2 for adoption for customer work. If a hacker wants to get in there, all they'll find is a lot of stuff I'm testing.
Any ideas where I might look for the cause if upgrading doesn't fix it?
Any ideas where I might look for the cause if upgrading doesn't fix it?
Re: content block 'default' does not work
Update:
I'm sorry, but I was just screwing around to see what happened so I wasn't methodical and I'm not sure what did it. But maybe this helps anyway: (Sorry, not a native speaker, so I hope I'm clear enough.)
For starters:
This is an install fresh from beta3, but the database and design were ported over from an older stable. Last one, I think.
The new template was made in beta3, and applied to existing pages.
Looking at the database; there simply was no field. Not null, not empty, simply not created. The cms connects with localhost/root and obv. full rights. (I know, bad. But... sandbox.) I did run the full rights song & dance on the database/root just in case this was MySQL being screwy. Obviously with no visible changes.
An instance where I had entered a value in the field after creating the page was stored properly.
The template with the non-functional 'default=' was connected to two designs, and for some reason was not available on creation of a page, until I disconnected it from the other design. This was new... so... maybe I simply screwed up something else.
I disconnected it from one design, and created a completely new page, and this is where I think the clue is (but you know the guy who made this so I may be wrong ) and presto magico; now the value shows up just fine.
I tried writing everything down. Hope this gives you a clue.
I'm sorry, but I was just screwing around to see what happened so I wasn't methodical and I'm not sure what did it. But maybe this helps anyway: (Sorry, not a native speaker, so I hope I'm clear enough.)
For starters:
This is an install fresh from beta3, but the database and design were ported over from an older stable. Last one, I think.
The new template was made in beta3, and applied to existing pages.
Looking at the database; there simply was no field. Not null, not empty, simply not created. The cms connects with localhost/root and obv. full rights. (I know, bad. But... sandbox.) I did run the full rights song & dance on the database/root just in case this was MySQL being screwy. Obviously with no visible changes.
An instance where I had entered a value in the field after creating the page was stored properly.
The template with the non-functional 'default=' was connected to two designs, and for some reason was not available on creation of a page, until I disconnected it from the other design. This was new... so... maybe I simply screwed up something else.
I disconnected it from one design, and created a completely new page, and this is where I think the clue is (but you know the guy who made this so I may be wrong ) and presto magico; now the value shows up just fine.
I tried writing everything down. Hope this gives you a clue.
Re: content block 'default' does not work
To be clear: you install a beta 3 and after that overwrite the database with the export of an older cmsms install?This is an install fresh from beta3, but the database and design were ported over from an older stable. Last one, I think.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: content block 'default' does not work
Just tested again, on a different install.
The default=something argument DOES work as intended. It works for new pages only. An empty value is a valid value for existing content pages, and therefore the default value will not be displayed.
The default=something argument DOES work as intended. It works for new pages only. An empty value is a valid value for existing content pages, and therefore the default value will not be displayed.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.