CMS Card won't connect
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/cms_tools.html
A lot of information about the Content Manager System can be found in the help/manual. Please read this first before posting any questions! Also check out the demo template that is include with the software.
CMS trouble shooting / FAQ:
viewtopic.php?f=10&t=43245
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/cms_tools.html
A lot of information about the Content Manager System can be found in the help/manual. Please read this first before posting any questions! Also check out the demo template that is include with the software.
CMS trouble shooting / FAQ:
viewtopic.php?f=10&t=43245
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
CMS Card won't connect
I have started to implement a CMS driven Blog into my website; I wanted to use CMS Card as I liked the layout, but even with all the details in the CMS section it will not connect to the database.
I notice that CMS Mode is set to "Fixed Content". I instituted a page with a CMS Label / CMS View combination and the CMS View mode is set to "Variable" and it connects perfectly. When I change Mode to "Fixed", like the card it won't connect ... I'd like to use the CMS Card, but it isn't connecting - I have also gome through my DataBase to see if there is anything there that forces a "Variable" Mode and there is nothing I can immediately see that would do that.
My other small annoyance is that CMS View seems to not see if font size is changed on part of text - either via the editor or directly edited in the database table.
Demo project can be viewed at https://www.vavayoga.com/VaVa_Demo/index.html
The Demo project .wbs can be downloaded from https://www.vavayoga.com/VaVa_Demo/VAVA ... S_Demo.wbs
EDIT:
Database user is vavayoga_admin and password has been set to wb20blogdemo
I notice that CMS Mode is set to "Fixed Content". I instituted a page with a CMS Label / CMS View combination and the CMS View mode is set to "Variable" and it connects perfectly. When I change Mode to "Fixed", like the card it won't connect ... I'd like to use the CMS Card, but it isn't connecting - I have also gome through my DataBase to see if there is anything there that forces a "Variable" Mode and there is nothing I can immediately see that would do that.
My other small annoyance is that CMS View seems to not see if font size is changed on part of text - either via the editor or directly edited in the database table.
Demo project can be viewed at https://www.vavayoga.com/VaVa_Demo/index.html
The Demo project .wbs can be downloaded from https://www.vavayoga.com/VaVa_Demo/VAVA ... S_Demo.wbs
EDIT:
Database user is vavayoga_admin and password has been set to wb20blogdemo
Re: CMS Card won't connect
There is a CMS menu on the same page, but this only works if you there is a CMS view on the page otherwise it will not know where to get the data from
This may also cause other the scripts on the same page to fail.
See also the note about this in the :
This may also cause other the scripts on the same page to fail.
See also the note about this in the :
The CMS Menu object MUST be on the same page as the CMS View object!
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
OK - well that explains why my CMS View page is working - but why is the CMS Card page not working? Have I misunderstoof how to use CMS Card? i.e. can I use it in place of CMS View or does it need a CMS View object as well?
Re: CMS Card won't connect
You will first have to fix the issue with the menu because it may affect the behvaior of the rest of the page.
Also, you will need to specify a valid 'page id' in the card's CMS properties.
Also, you will need to specify a valid 'page id' in the card's CMS properties.
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
I've tried taking menu out - no difference.
I am clearly not understanding the purpose of the CMS Card object. Because it has all the same CMS Connection Information as the CMS View, I thought it was a replacement for CMS View.
As stated though, in it's CMS configuration tab, CMS Mode is set to "Fixed" and cannot be changed. While experimenting with the CMS VIEW page, I found if I changed CMS mode to "Fixed" I had the same problem - it wouldn't connect to the database. When I set CMS Mode back to "Variable", then everything worked again.
However, as stated, CMS Card cannot be changed from "Fixed" to "Variable" and THAT is what is causing my issue
EDIT: As I am having a greater measure of success with the standard Title / View I may as well just stick to that (unless I CAN get CMS Card working)
HOWEVER I have used a CMS Lable with the tag "$Cms_extra_data" for my subheading and have positioned it below the title. You can see on demo project it looks OK - until you go down to 320 breakpoint, at which point large gaps appear between the line breaks.
I have tried setting
Between the <head> tags of both my master page and the actual page on which the Extra Data object is on - this method works perfectly for my 320 responsive menu, but makes no difference at all for the Cms_ExtraData object.
Can you advise?
I am clearly not understanding the purpose of the CMS Card object. Because it has all the same CMS Connection Information as the CMS View, I thought it was a replacement for CMS View.
As stated though, in it's CMS configuration tab, CMS Mode is set to "Fixed" and cannot be changed. While experimenting with the CMS VIEW page, I found if I changed CMS mode to "Fixed" I had the same problem - it wouldn't connect to the database. When I set CMS Mode back to "Variable", then everything worked again.
However, as stated, CMS Card cannot be changed from "Fixed" to "Variable" and THAT is what is causing my issue
EDIT: As I am having a greater measure of success with the standard Title / View I may as well just stick to that (unless I CAN get CMS Card working)
HOWEVER I have used a CMS Lable with the tag "$Cms_extra_data" for my subheading and have positioned it below the title. You can see on demo project it looks OK - until you go down to 320 breakpoint, at which point large gaps appear between the line breaks.
I have tried setting
Code: Select all
<style>
#wb_Cms_ExtraData .toggle{line-height: 35px;}
</style>
<style>
#wb_Cms_ExtraData br{display: none;}
</style>
Can you advise?
Re: CMS Card won't connect
The card can only be used to display 'fixed' CMS content based on the page id. Variable content only be displayed inside a "CMS view'.
Therefor it's important the 'page id' property is valid.
See also the release notes of this feature:
https://www.wysiwygwebbuilder.com/support/wb16.html
If this does not work, then please check the PHP log for errors. This will usually give a clue why it does not works/.
Therefor it's important the 'page id' property is valid.
See also the release notes of this feature:
https://www.wysiwygwebbuilder.com/support/wb16.html
If this does not work, then please check the PHP log for errors. This will usually give a clue why it does not works/.
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
Right. OK, I get that - how do I figure out what the integer is for my Page ID?
ALSO, are you able to shed any light on my query regarding the "$Cms_extra_data" Lable I am using for my subheading that has large gaps appear between the line breaks at 320 Breakpoint?
ALSO, are you able to shed any light on my query regarding the "$Cms_extra_data" Lable I am using for my subheading that has large gaps appear between the line breaks at 320 Breakpoint?
Re: CMS Card won't connect
If you login to the CMS admin and hover over the page options, then you will see the id in the link.
Or else look in the database.
Currently, your configuration has 3 pages: 5, 6, 7. So any other number will not work.
It's unclear to me what you are trying to do with $cms_extra_data
Or else look in the database.
Currently, your configuration has 3 pages: 5, 6, 7. So any other number will not work.
It's unclear to me what you are trying to do with $cms_extra_data
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
Many many thanks for the guidance re: page id - much appreciated.
With regards $cms_extra_data, I am using it as a sub-heading field. At 1280 & 768 it’s perfect, but when I reduce screen size down to 320px, quite naturally a longer subheading will break across two lines.
The issue - well, the annoyance, is that there is then a large gap between the lines.
e.g. instead of :
Yoga is Yoga is Yoga … isn’t it?
Well no, it’s not
I get
Yoga is Yoga is Yoga … isn’t it?
Well no, it’s not
… I’m trying to get rid of the gap between the lines
With regards $cms_extra_data, I am using it as a sub-heading field. At 1280 & 768 it’s perfect, but when I reduce screen size down to 320px, quite naturally a longer subheading will break across two lines.
The issue - well, the annoyance, is that there is then a large gap between the lines.
e.g. instead of :
Yoga is Yoga is Yoga … isn’t it?
Well no, it’s not
I get
Yoga is Yoga is Yoga … isn’t it?
Well no, it’s not
… I’m trying to get rid of the gap between the lines
Re: CMS Card won't connect
Have you tried setting the line height setting to 1 or 1.5?
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA).
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA).
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
Line height setting? The CMS Label object doesn’t have a line height setting that I can find
Re: CMS Card won't connect
I can't find the relevant object in your demo file, but if it's a card, and you make the lebel a TEXT object, then there will be a line height setting that will kick in when there is text wrap.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA).
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA).
Re: CMS Card won't connect
Where exactly on the page do I need to look to see the gap?
Note that $cms_extra_data is a PHP variable, so it cannot be styled. You will need to apply the style to the container.
Note that $cms_extra_data is a PHP variable, so it cannot be styled. You will need to apply the style to the container.
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
On the page from the menu that is “CMS View” (second item down) then under “articles” select either of the two sub pages and size screen down to 320px
But I think you have answered the question with it being a PHP variable and so unable to be styled. I’m still very much a newbie at this - how would I apply the style to the container?
If I am then to understand correctly Pablo, the CMS Card object will be able to show 1 article or item from the database, being referenced by the Page ID found on CMS Admin, and I would need multiple cards / pages, each with a unique Page ID to show multiple articles from the DB - is that correct?
But I think you have answered the question with it being a PHP variable and so unable to be styled. I’m still very much a newbie at this - how would I apply the style to the container?
If I am then to understand correctly Pablo, the CMS Card object will be able to show 1 article or item from the database, being referenced by the Page ID found on CMS Admin, and I would need multiple cards / pages, each with a unique Page ID to show multiple articles from the DB - is that correct?
Re: CMS Card won't connect
I'm sorry I do not see the item on the live website.
Can you please be more specific?
Correct, the CMS card can display one item (page) from the CMS data.
You can have multiple cards on the same page with different page IDs.
You can also specify a negative page ID. This will display nth last item (based on the creation date). For example, using -2 will display the second last item. This can be useful if you want to display the last few items on a page.
Can you please be more specific?
Correct, the CMS card can display one item (page) from the CMS data.
You can have multiple cards on the same page with different page IDs.
You can also specify a negative page ID. This will display nth last item (based on the creation date). For example, using -2 will display the second last item. This can be useful if you want to display the last few items on a page.
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
This is the link https://vavayoga.com/VaVa_Demo/Blog_wow_EN.php?page=6, size it down to 320px and you’ll see the issue
Re: CMS Card won't connect
This may work:
Code: Select all
<style>
#Cms_ExtraData
{
line-height: 1.0 !important;
}
</style>
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
Between the <head> tags of the page it’s on?
Re: CMS Card won't connect
Yes, styles should be between the head tags.
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
Many many thanks Pablo; I’ll try it Monday when next I fire up the computer and let you know
-
-
- Posts: 31
- Joined: Mon Feb 24, 2020 8:37 pm
Re: CMS Card won't connect
PERFECT!! Thank you Pablo that worked an absolute treat - as did putting in the correct Page ID for CMS Card - all issues fixed.
And with that I shall take down the demo project and change password back to live.
Thanks Again Pablo
