Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read GET parameters in the themes #1289

Closed
modos189 opened this issue Aug 6, 2015 · 4 comments
Closed

Read GET parameters in the themes #1289

modos189 opened this issue Aug 6, 2015 · 4 comments

Comments

@modos189
Copy link
Contributor

modos189 commented Aug 6, 2015

I propose to add a function to obtain _GET request parameters.

Then, by sending a request http://myserver/unread/?ajax=true

With the code in base.html.twig

{% if ReadGET('ajax') == false %}
<html>
...
some description of the page
...
<div id = "content" class = "w600p">
{% endif %}

{% block content %}{% endblock %}

{% if ReadGET('ajax') == false %}
</ div>
...
</ html>
{% endif %}

This will allow the transfer of the key "ajax" only get content.

The same approach we use on our projects in the Atom-M CMS.

@j0k3r
Copy link
Member

j0k3r commented Aug 6, 2015

But why do you need this ajax parameter ?

@modos189
Copy link
Contributor Author

modos189 commented Aug 6, 2015

It will go to a page without reloading the page by aJax technology and receive only the new code only

<div id = "content" class = "w600p">
</ div>

and the rest of the page updated by js

@j0k3r
Copy link
Member

j0k3r commented Aug 6, 2015

Well, even if the feature seems a great one, I don't think we need to use this kind of getter to handle ajax pagination. This can be done without that.

@j0k3r j0k3r closed this as completed Aug 6, 2015
@modos189
Copy link
Contributor Author

modos189 commented Aug 6, 2015

If you can do it a different way so please tell me how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants