Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
What is the twig equivalent to this php snippet?
· 10 years ago
You'd really have to create a plugin to read the file - sorry - as Twig's includes are purposed towards including templates. The .mvc file (not sure what format that is) would have to be parsed before
-
What is the twig equivalent to this php snippet?
· 10 years ago
I tried putting this on the page: {% include 'http://somedomain.com/somescript.mvc' %} but it just prints it out as is. I don't want to put this in a template because it's only for the home page. I'm
-
What is the twig equivalent to this php snippet?
· 10 years ago
I have a simple php call to insert content from a local non-php script. Twig isn't making any sense to me and PHP is far from my normal scripting language. Does anyone know what the twig equivalent to
-
How to create navigation entry that is just a link?
· 10 years ago
I'm looking for an easy solution that can be done with the Grav admin. I have just discovered a "Page redirect" option in the Page Editor (Advanced) tab at the Overrides section, that is not explained
-
How to create navigation entry that is just a link?
· 10 years ago
Some themes use that approach (Antimatter, Deliver..) which is just a convention, nothing "built into Grav" but an example of using the configuration.
-
How to create navigation entry that is just a link?
· 10 years ago
See the TwentyFifteen theme, for example, which inserts links from site.yaml at the end of the autogenerated navigation.
-
How to create navigation entry that is just a link?
· 10 years ago
I am sorry if this seems to be a stupid question, but I could not find an answer in the Grav documentation: How do I create a navigation/menu entry that is just a link to another website? My Grav webs
-
Send email with attachment, which is stored on server
· 10 years ago
You can have your theme submit the form using AJAX by intercepting the submit event. The default is to use a standard POST event to the server, but nothing prevents a theme to handle this differently
-
Send email with attachment, which is stored on server
· 10 years ago
The task was just to send PDF to email, which user specifies in custom frontend form, made with html + js. I ended up with using PHPMailer, creating simple script and calling it via POST AJAX request.
-
Send email with attachment, which is stored on server
· 10 years ago
How are you sending this email? Is this a response to a form, so is the email configured in a page header?