ExData Module v2.8.0 - Tables, Lists and more…

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
fardilha
Posts: 48
Joined: Wed 3. May 2006, 21:18
Location: Portugal
Contact:

Post by fardilha »

Hi!

Thank you for your quick response. :)

I definitely need to get some sleep.
That " //-->" on the end of my script is a good example of what lack of a proper night of sleep can do to a person.

That "big whole linking table" actually was a thing that my client wanted... :oops:

Well back to the real thing:

If I understood you correctly (and again I'll remember my lack of sleeping time) with the "<!--start_cut//-->" and "<!--end_cut//-->" only the empty rows would be cut.
My doubt is that depending of the record, a field can be empty or not.
I don't want to cut that row always only when, for some reason, there's no data in it and I'm just afraid that my lack of decent English skills could be inducing you in error.
(Although I'm assuming that if you had understood that O wanted to clean that row always, you had simply suggested to delete it from the template...)

If that could be "doable" that would be great.
This way I don't need to clean the padding on the cells... I really don't like to see the text close to the borders. :)

Again thank you for all your help.
Pedro Fardilha
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Hey... Sorry for dropping in, only at this point of history :roll:
Never had time yet, to test this tremendously interesting Mod :oops:
Before going through editing core files....
I wish I could get an answer to this simple question:
Does ExData allows a frontend user to write/submit through a form,
data to the database?


Cheers,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

I'm 99% sure that it doesn't do that at the current time, StudioZ.
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Ben wrote:I'm 99% sure that it doesn't do that at the current time, StudioZ.
K. Thanks Ben for your input.

Cheers,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
fardilha
Posts: 48
Joined: Wed 3. May 2006, 21:18
Location: Portugal
Contact:

Post by fardilha »

Hello.

As far as I can tell, no exData does not allow a frontend user to submit data.
Right now that's what I'm using to do that:
http://phpformgen.sourceforge.net/

Among other things you can select fields from an existing database and make the form populate them.

Best rgards
Pedro Fardilha
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Thank you Fardilha :wink:
I may give it a try 8)
I was also thinking about using
http://www.allibsus.com/mailpro

A story to follow...

Cheers,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
fardilha
Posts: 48
Joined: Wed 3. May 2006, 21:18
Location: Portugal
Contact:

Post by fardilha »

Well... phpformgen is free.... ;)
User avatar
fardilha
Posts: 48
Joined: Wed 3. May 2006, 21:18
Location: Portugal
Contact:

Post by fardilha »

Hi all!!

I know that I'm being really a pesky but I would like to know if someone else has made something like this using the exdata mod:

On my site I'm using exdata as a book catalog on one of my pages.
To make it work a little more like a catalog I need to make it order entries by date, having the newest ones first.
This way I can always show the "what's new first" ;)
My problem is that, right now, I can only make him order by date showing the oldest one first. :(
(Well, I could try to change the code to make it always sort "backwards" but this way when a user selected "sort by name" it would look kinda strange)

Another thing:
IF this sort "problem" could be solved (it's not a true problem, I'm just being picky ;) ) my next one would be to try to show those "what's new" on the left menu.
For that I need to be able to only show some entries (like the 3 first with the inverted sort order) on another template.

Thank you
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Post by breitsch »

fardilha wrote:...but if you wanna that free stay in Portugal I need to ask your help once more...
If I were you, fardilha, I'd already call that nice little beach-hotel!
I worked for you and just for you!

Pretty much all your requests are done now:
- clean empty records in html-output in private templates as well, cross-browser
- news-function with new RT: EXDNEWS where you can set up the number of news
Can be used for auto-templates and moo.fx as well
- order entries by date, newest first (default - I think its better like that)
- the sort-function is much better now in all templates (private, moo.fx and auto). e.g. empty records now on the end of the list, numbers in correct order now, date in reverse order ...

Example for your request fardilha: http://web.casa-loca.com/index.php?privatetemplates

So, send my the reservation confirmation and i'll give you the download-link. :wink:
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
User avatar
fardilha
Posts: 48
Joined: Wed 3. May 2006, 21:18
Location: Portugal
Contact:

Post by fardilha »

You have to confess, working with a real life example is way better, isn't it?? :D
This way you can test how far your great mod can go, and what different types of situations people try to use it!! ;)

Nevertheless I do think I own you a nice vacation here!!!
We do have great beaches on the summer. :)

Did I already mention that you are a life savior and that I thank you endlessly?????

Pedro Fardilha
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post by sustia »

Hi all, I have two question


1-Breitsch
I'm trying to make the pagination works, but it doesn't work.
In this page
http://noria.ba.cnr.it/index.php?id=53,70,0,0,1,0
I've putted this replacement tag:

Code: Select all

{EXDATA:1:page.sort.template.php:1:0}
{EXDAUTO:1:auto:1:0}
The sort by works, but the pagination not, because all the items are shown in the same page.

2-fardilha
How you have obtained the moo.fx to work with Internet Explorer?
Because I see that your doctype is

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
       "http://www.w3.org/TR/html4/loose.dtd">
but with that doctype for me only in Firefox the moo.fx works, in IE it doesn't work properly, as you can see in this page:
http://noria.ba.cnr.it/index.php?id=53,81,0,0,1,0

Thanks.
Campeones del mundo!
Vegetables!
User avatar
fardilha
Posts: 48
Joined: Wed 3. May 2006, 21:18
Location: Portugal
Contact:

Post by fardilha »

Hi sustia! :)

Yes, I had the same problem on the beginning.


Moo.fx recommended that we should use

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
but I use

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
       "http://www.w3.org/TR/html4/loose.dtd">
AS you can see in this forum
http://www.phpwcms.de/forum/viewtopic.p ... ht=doctype

Are you sure that you dind't use only the "transitional" as on the instructions without the "loose" part?

HTML 4.01 Transitional seems to corrupt the rendering with IE6

This way everything works fine (at least for me) in IE (pc) FF (PC) FF (Mac), Safari (Mac) and Opera (Mac).
(IE for Mac is considered dead and buried by Microsoft so I no longer test in it)

Take care.

Pedro Fardilha
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post by sustia »

Hey fardilha, thanks again and again :D

Now it works perfectly :D
Campeones del mundo!
Vegetables!
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Post by breitsch »

@sustia

Why do you use two RT's on the same page?
EXDATA is the RT for private templates and does not work together with EXDAUTO wich is RT for auto-templates

use only the EXDAUTO an set the parameters in Template-Section in backend (in your case template with ID=1).

when you want do do it with your personal templates (wich is not the case when I see your site) then use EXDATA correctly - it has only 3 parameters:
{EXDATA:[category-ID]:[main template file]:[entries template file]}
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post by sustia »

Thanks for the quick answer, but I'm not sure I've understood.
For example, in this page
http://web.casa-loca.com/index.php?privatetemplates

what RT you have utilized?
Please don't write in this form

Code: Select all

{EXDATA:[category-ID]:[main template file]:[entries template file]}
but the real RT in order to understand this :oops:
Campeones del mundo!
Vegetables!
Post Reply