You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got everything working now! Thanks for the module!
In the Block>Settings tab there is a free form text field named "Link". What is the intended usage of this field? I entered a URL in hopes that it would link the image that I inserted, but the image only enlarges when clicked. I have got around this by adding the image into the "Main" tab, but was mostly curious if I'm using this correctly.
Is there a way to create more space between blocks? if so, which file do I modify?
Is there a way to add a colored border to blocks? I looked through block.css, but didn't see any reference to any color values. I looked at the ContentBlockModule.css file as well and do see references to color but wasn't sure if this was for CMS only or if it's just not applying.
Thanks in advance for your help regarding these questions. I have uploaded a picture of a page I made using your module. Keep in mind that I'm very much a Noob!
The text was updated successfully, but these errors were encountered:
The link field is just a field that you can use if you want. Just add $Link in your template, where you want your link string.
Could also do
<% if $Link %><a href="$Link">Click here</a><% end_if %>
Edit:
The rest of your questions, just add some css in your main css file or put it inside block.css
You could give all block templates a class and then target that class.
Thanks for the reply. I added the line of code you pasted into your reply to the block template (after the second end_if) I was using but then I just get a "Click Here" link at the bottom of the picture. It does link to where I wanted it to though. I moved the code inside the "end_loop" for Images, but then I have the same visually but it links to the picture like before.
How can I make the actual Image be the focus point for the link? I want the end user to be able to click the picture or even the entire block and then have it take them to the linked page.
Haven't messed with the CSS yet, but if I just want to have my blocks take on the styling of my "Simple" theme can I copy/paste everything from block.css into layout.css or form.css?
Thanks. I clearly need to read up on the Silverstripe/PHP model and how it all works!
Got everything working now! Thanks for the module!
In the Block>Settings tab there is a free form text field named "Link". What is the intended usage of this field? I entered a URL in hopes that it would link the image that I inserted, but the image only enlarges when clicked. I have got around this by adding the image into the "Main" tab, but was mostly curious if I'm using this correctly.
Is there a way to create more space between blocks? if so, which file do I modify?
Is there a way to add a colored border to blocks? I looked through block.css, but didn't see any reference to any color values. I looked at the ContentBlockModule.css file as well and do see references to color but wasn't sure if this was for CMS only or if it's just not applying.
Thanks in advance for your help regarding these questions. I have uploaded a picture of a page I made using your module. Keep in mind that I'm very much a Noob!
The text was updated successfully, but these errors were encountered: