-
Posts
126 -
Joined
-
Last visited
Posts posted by Hari KT
-
-
Hey,
Is there a way persistent cookie can be set for users which are logged-in in PW ?
-
Hi @teppo,
It is really nice to know we can dig into SQL. I wasn't really aware where these data's were stored. I will check your idea, and it sounds good to me.
Thank you.
-
Hey,
I was also checking for this. The problem why I am searching is I have a template with fieldtype of Page.
And this fieldtype Page can be same or different .
I want to only get the unique fieltype Page , from the template.
Edit : I know I can get the results and traverse why I am asking is the selector I made was having a limit 5, and I don't know whether loading the PagesArray of 1000's will be a drawback and make it slow to compare the results.
Thank you.
-
Sorry @Martijn Geerts , @Soma ,
Not sure how I missed these topics. I thought I didn't got any reply. My bad.
By the way what I was doing is like some custom input fields for username , password.
User Name : <input type="text" name="username" /> Password : <input type="password" name="password" />
And I was going to register the user via the api . So basically I am not sure whether it is good idea to create a form via PW api form and render . Or make use of the api and the validation via some validation library .
Thank you.
-
Congrats Ryan !
-
Hey,
I am wondering if PW itself have some sort of validation. Not regarding the FieldType. I was having a custom registration form and want to validate the username, email, password etc. If a validator is there I can use the inbuilt one, else I wish to got with the Aura.Filter which is independent.
-
that doesn't solved either.
-
Martijn Geerts ,
Thank you for the fast reply. I did tested in selector test and there is no difference in the total count of articles.
-
Hi guys,
I have a category template and articles in different category ( articles template ).
category1 - articles category2 - articles category3 - articles - articles
I am listing all the articles via the selector "template=articles" . When the category is made as unpublished or hidden then also the articles are displaying. Is there a way other than doing
$category = $pages->find("template=category"); $category_ids = $category->__toString(); $articles = $pages->find("template=articles, parent=$category_ids");
I can get only the articles for published ones?
Thank you
-
Hey Soma,
Thank you. I point to the live apigen, but I do use a local api created with the latest master.
-
Hey Soma,
When you check the code the user is actually reset
$guest = $this->fuel('users')->getGuestUser(); $this->fuel('users')->setCurrentUser($guest);
http://processwire.com/apigen/source-class-Session.html#254
So without a redirect itself it should work is what I assume.
-
First thank you for the snippets and nice discussion. I was trying to logout the user.
$session->logout(); if($user->isLoggedin()) { echo "Logged in"; }
If I have not done a redirect like
$session->redirect("/login/");
then the
$user->isLoggedin()
is true. Seems like a bug to me for the $user->id is not rest on logout. We need to reset the user->id .
Thank you.
-
Martijn Geerts thank you.
I will try to help people when I get some time. Got busy with Family and some other stuffs.
- 1
-
$config->styles->append("/site/templates-admin/styles/custom.css"); $config->scripts->append("/site/templates-admin/scripts/custom.js");
Not PW guru myself, are you getting the things rendered in view source ?
If so what are you getting the url as and when clicking the same are you getting the desired output .
- 1
-
@horst you are welcome .
Hope all is well at your end also.
-
@apeisa I eneded up at PageListSelect .
Thank you for the suggestion.
@adrian the idea is when a user save an article, we need to get the date and time when the user saved the article.
Say there is a list of articles. When X saved the article for future ( say like twitter favourite ) and at some point of time, he needs to look into the details when he saved it etc.
I have a similar discussion at http://processwire.com/talk/topic/5301-looking-for-some-suggestions-help/
Thank you to all for the help.
-
Hey @ryan
I have send a PR https://github.com/ryancramerdesign/ProcessWire/pull/366 which will fix this.
This have been run and is working fine.
Edit : If you are running on an older ones have a look into http://zaemis.blogspot.in/2014/02/fixing-mysql-server-has-gone-away.html post . That will help you to set the flag. But not for PDO.
- 4
-
@adrain this is basically not shown to users. So no more scrolling. The article field is intended to make it as save an article for future use by the user.
I will look into the Page Auto Complete .
Thanks for the suggestion.
-
@apeisa the template is created via add template . See the edit image .
See the article field, which is a PageArray . To load this page (only ) it is slow. I feel the reason is to populate the select box. My question is, whether there is a way not to populate it, and only load a few ones on the initial load.
@Soma : Sorry for the vague question.
Thank you.
-
Hi Guys,
So I have a template lots of articles . Approximately 23559 pages .
I have a field article_id in say example template which is of type of PageArray to the articles template.
Now when you try to load that particular template ( example ) PW is becoming slow....
And yes another server we have around 293363 pages and this can grow. So what is the best way to get much speed, or say the PageArray not to load all the stuffs for this is mainly used from an admin point of view.
Any suggestions is welcome.
Thanks
-
@Soma that is an old post. Many are interested, but that didn't moved from there.
@Michael Murphy looking for possible dates also.
-
Hey in PW 2.4 I was having a PageArray field assigned to a template. And the operations like has, remove etc
$page->page_array_field->has($id); $page->page_array_field->remove($id);
If the value is integer it don't remove the value or find a value. But only passing a real page object removes the value from the db. Or is it still behaving for everyone else ?
-
Thanks guys.
I will look into this and get back.
Thanks once again for the fast replies.
-
Hi Guys,
Probably this has been asked, or have some modules which have the similar functionality. If you think so please link to it . I did searched a lot whether any question is asked. My apologies if I didn't find that.
I was wondering whether there is a way in PW which can create the needed fields for my template, and copy the template to the site/templates folder.
I noticed the __install() hook can be used to create Fields and FieldType.
$field = new Field(); $field->setName('somefunnyfield'); $data = array( 'label' => 'Some nice label', 'type' => 'Page', );
Now the problems are more customization. Is there a module or something that can generate the necessary information from the already created fields?
The idea is want to create module say ( Blog ) which has certain fields and that can be installed in any PW installation, which out any changes other than in code.
Thank you
- 1
Remember me functionality
in General Support
Posted
So, I was looking to implement the remember me for the login. I didnot find a module for that.
The functionality will be some token saved on the user side, and on the first request make the user authenticate if he/she has the token with the request.
So the question is what will be the first hook, which will be called, so I can implement the hook to add the implementation.
Do you have any insights on the same?