Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[FIXED] FE Item View not showing on empty record. 19 Apr 2012 13:02 #2058

  • edwardcox
  • edwardcox's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
Hi All,

My Project has a Front End View layout - View My Details (Fly) which when I call it from a Menu displays a blank screen - IF there is no existing record to display. Kind of obvious I suppose, however if I call the Edit My Details in a Form I can successfully enter the details.

Summary: if I call a Front End view (Fly) that has no record data it does nothing and I get a blank screen.

Thank you,

Edward.
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.

Please Log in or Create an account to join the conversation.

Last edit: by admin.

Re: FE Item View not showing on empty record. 19 Apr 2012 17:06 #2061

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
Hi Edward,
What would be your desired output if there is nothing to show ?

Please Log in or Create an account to join the conversation.

Re: FE Item View not showing on empty record. 20 Apr 2012 05:17 #2065

  • edwardcox
  • edwardcox's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
Losing my mind, could have sworn I replied to this :unsure:

Anyway, so I guess I have to modify a Controller so that if there is in fact nothing to show (i.e. No records found) it either displays a simple 'No records found' or redirect to another article/page. Only not sure if this is the best solution?

Edward.
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.

Please Log in or Create an account to join the conversation.

Re: FE Item View not showing on empty record. 20 Apr 2012 07:20 #2067

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986

What would be your desired output if there is nothing to show ?

:lol:


Active your error reporting when you get a blank screen and post the error.

Anyway, I think I already solved this one in local, but please report me the error.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: FE Item View not showing on empty record. 20 Apr 2012 07:44 #2069

  • edwardcox
  • edwardcox's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
Am attempting to enable error_reporting using error_reporting(-1); in Component and in template index.php to no success. Also errorlog from CPanel shows no errors visible :huh:

Can you please suggest the best place to insert error_reporting(-1); to ensure errors are displayed?

Thank you,

Edward.
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.

Please Log in or Create an account to join the conversation.

Re: FE Item View not showing on empty record. 20 Apr 2012 08:04 #2070

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
In the main controller of your component.

mycomponent.php (In FRONT and BACK)

So the errors are visible only when you load your component.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: FE Item View not showing on empty record. 20 Apr 2012 08:30 #2072

  • edwardcox
  • edwardcox's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
Ok, things that make you go Grrrr. Inserted error_reporting in controller back/front. No change, no output, no error.

Jocelyn, just out of curiosity, if the controller is asked to show a Record with no data what should nothing to show ;) look like.

And of course.. any further suggestions? Re build?

Edward.
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.

Please Log in or Create an account to join the conversation.

Re: FE Item View not showing on empty record. 20 Apr 2012 08:57 #2074

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.

Please regenerate.

The only affected files are :

classes/jmodel.item.php
classes/jmodel.list.php
Coding is now a piece of cake
The following user(s) said Thank You: edwardcox

Please Log in or Create an account to join the conversation.

Re: FE Item View not showing on empty record. 20 Apr 2012 09:39 #2075

  • edwardcox
  • edwardcox's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
As in the Will Smith film: Legend. (thank you!)
Fixed. So answer to the long running question "What should I expect to see? Nothing - an empty layout!".

Edward. :)
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.

Please Log in or Create an account to join the conversation.

Re: FE Item View not showing on empty record. 20 Apr 2012 09:48 #2077

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
And to refers to another empty totally unusfull feature, I recommend this one :
www.nonumber.nl/extensions/whatnothing
I recommend to read and post a comment ...

By the way I appreciate and highly recommendate NoNumber cool extensions !!

To finally answer you Edward, I totally understand that is an important question to handle all possible pages that the user can access. (Or robots)
Coding is now a piece of cake
The following user(s) said Thank You: edwardcox

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.081 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started