Questions tagged [concrete5-5.7]

concrete5 version 7 is a major version of concrete5. It has been since surpassed by version 8.

Concrete5 version 7 is a major update to the concrete5 product, overhauling the architecture significantly from previous versions. This update brings many large changes, including a new architecture based on Laravel, a new asset handling layer, changes to the theme engine and much more.

74 questions
9
votes
1 answer

CKEditor Insert non editable HTML within style

I'm currently working on a port of CKEditor into concrete5. As part of that, concrete5 has the ability to create "Snippets" which can be inserted via the editor. Developers have the ability to define what kind of HTML output these widgets produce…
Joe Meyer
  • 4,315
  • 20
  • 28
9
votes
0 answers

How to render standalone Symfony Form without Twig?

I have Symfony\Component\Form\FormView object. How do I render it without Twig and framework? Specifically I want to use Symfony Form in Concrete5 custom block type.
Tormi Talv
  • 217
  • 1
  • 8
5
votes
2 answers

Concrete5: set File thumbnail to generated image (e.g. for PDFs)

I'm using Concrete5, and I'm trying to display thumbnails for various uploaded files. While some of these might be images, the majority are PDFs. I'm currently using:
Joost
  • 4,094
  • 3
  • 27
  • 58
4
votes
1 answer

Unable to enable crypto on TCP connection

In a page on my concrete5 site and added the rss feed block. For getting feed from blog. Gettting the following error: Unable to enable crypto on TCP connection www.blog.com: make sure the "sslcafile" or "sslcapath" option are properly set for the…
AkhilKrishnan
  • 524
  • 5
  • 17
4
votes
2 answers

Catch db error with Doctrine\DBAL\Exception

I want to catch any error (ie: foreign key error) from an insert statement or any other. How can I achive that with use Doctrine\DBAL\Exception? I have this when I do the insert: $db->beginTransaction(); try { …
Rafael Mora
  • 1,095
  • 2
  • 13
  • 21
4
votes
1 answer

Concrete5 5.7: Using file objects in a Single Page Controller

I try to attach a file object to a mail object. I have included the following in the form of my view: $f = new Concrete\Core\Application\Service\FileManager(); //... echo $f->file('file', 'test', 'pls choose'); Then I submit my form back to the…
toesslab
  • 5,092
  • 8
  • 43
  • 62
3
votes
1 answer

Concrete5: How to display retina image through the image block?

I am trying to implement Retina.js plugin for displaying alternate images on retina display. This will certainly work if I have a fixed image path hardcoded into the page or theme but how do I make this work through the Image block? Or is there a…
user1448031
  • 2,172
  • 11
  • 44
  • 89
3
votes
1 answer

Where do you store global settings/variables in concrete5?

In a concrete5 website, where is the best place to store global variables that you would like to access site-wide across templates and controllers etc.? e.g. A specific external URL, a Facebook ID, some kind of version number, etc.
Simon East
  • 55,742
  • 17
  • 139
  • 133
3
votes
3 answers

Concrete5 5.7: How to use the dialog popup on package dashboard single pages

I have a package with a dashboard single page. On this single page I need a dynamically created dialog popup, and so I also need to use the router, views (package/mypackage/views) and controllers. The questions now are the following: What looks the…
3
votes
2 answers

Concrete5 5.7: Passing variable from Controller to View

So I have made a dashboard Single Page under: /application/single_pages/dashboard/newsletter.php and a /application/single_pages/dashboard/view.php The Controller is under: /Concrete/controllers/single_pages/dashboard/newsletter.php The…
toesslab
  • 5,092
  • 8
  • 43
  • 62
2
votes
1 answer

How to place entities in package for Concrete5 v.8?

Question on the version of 8. How to place entities in package for Doctrine? I have it not mapping to DB(
guyasyou
  • 23
  • 1
  • 5
2
votes
2 answers

Concrete5: How to refresh a package?

I am working on a custom package that only has dashboard-related application. In other words, there are no blocks. If I update the table in the db.xml, how do I refresh the package so that the table structure is synced in the database? I can't see a…
user1448031
  • 2,172
  • 11
  • 44
  • 89
2
votes
1 answer

How to get file object from file path in Concrete5?

I want to get thumbnail from the file inside the themes directory but getThumbnail() function requires me to pass a file object. This obviously doesn't work: $v = View::getInstance(); $themePath = $v->getThemePath(); $thumbnail =…
user1448031
  • 2,172
  • 11
  • 44
  • 89
2
votes
2 answers

Generate a "Logout" link in Concrete 5.7

I want to create a Logout link in my Concrete 5.7 theme. What function do I call to generate that URL, seeing as it contains special security tokens?
Simon East
  • 55,742
  • 17
  • 139
  • 133
2
votes
2 answers

How do I perform a redirect in Concrete 5.7?

What's the correct way of performing a server-side redirect in custom Concrete5 code (5.7+)?
Simon East
  • 55,742
  • 17
  • 139
  • 133
1
2 3 4 5