Page 1 of 1

Edit Entries LInk

Posted: Wed Oct 11, 2006 8:49 am
by manoj
Hi,

When we click on edit entries link in left navigation, all the entries for that author are displayed.When we click on a category link(X) of any particular entry(in the format Published by AAA in X), all the entries in that category are shown.
Here for each entry theres a small box on the right top corner in the format:
[Entry Tilte Posted by Author in Cat1,Cat2.. at Time
Edit Entry
Comments
Trackbacks]
In which file to look for the above box, because i want to know how the categories are displayed in that box.(sometimes these categories are not displayed i.e cat1, cat2)
Also when i click on comments link that box, Add comment form is shown for that entry and on the right top corner we have the same box and [posted by A in ,] categories is shown blank.where to look for this in code.
I have changed category logic and not using Serendipity_category table.
pls help me out.
Thanks.
manoj.

Re: Edit Entries LInk

Posted: Wed Oct 11, 2006 10:10 am
by garvinhicking
Hi!

You can see that "box" inside the 'entries.tpl' template file!

Best regards,
Garvin[/list]

how data is coming to entries.tpl

Posted: Wed Oct 11, 2006 11:23 am
by manoj
hi,

Thanks for the help. But still iam unable to solve the problem.
When i click on the category link(Cat1) in [Published by AA in Cat1] in edit entries section , all the entries in Cat1 are shown and even the box in top right corner for each entry is properly displayed even Published by AA in cat1, cat2 at xx:yy is shown correctly in the box. But the problem comes when i click on the comments link in that box.
when i click on comments link the add comment form is shown but in the box[ Published By AA in ] is shown the categories are not shown. why is this happening because in the earlier screen it was showing all in that box.

Also in entries.tpl from where is $entries getting values?i mean how is $entries assigned values. where exactly is entries.tpl called for my problem. when i print $entries.categories it prints as Array. how to print individual values in array?
sorry for such a long list of doubts.
thanks.
manoj.

Re: how data is coming to entries.tpl

Posted: Wed Oct 11, 2006 11:29 am
by garvinhicking
Hi!

If you tell us your URL, we could have a look at this?

$entries is getting its values from the serendipity_fetchEntries() function that is called in include/genpage.inc.php.

You can use code like {$entries|@print_r} in your smarty template to see the whole array, but you need to set "$serendipity['smarty']->security = false" in your templates config.inc.php file first to be able to call print_r.

HTH,
Garvin

URL

Posted: Wed Oct 11, 2006 11:46 am
by manoj
hi garvin,

I have installed serendipity on my local machine.
all the urls start with http://localhost.
I dont know if u can access if i give u a url because we have firewalls and our network has restricted access.
If u feel u can access then let me know i'll give u the URL.Thats not a problm.
Thanks.
manoj.

Re: URL

Posted: Wed Oct 11, 2006 11:52 am
by garvinhicking
Hi!

Hm, that's a problem. I can of course only access internet URLs, not intranet ones.

Maybe you can make screenshots of your problem, or put up a public blog so that we can see your problem?

Best regards,
Garvin