|
This
only happens to me if there is not a page with a form component for that
link type (add, edit, delete, view) within that module. In other words, if I
have I don't have an edit form embedded in a page anywhere in
that module, then the Edit Link is (None Available). I believe It is
just a validation check they do to make sure you have an actual page/template
with an edit form embedded in it before you generate the
code.
This
is different from 'disabled', although that is confusing in my opinion and
should say "No (disabled)" so there is some reference to the tag attribute
in the code.
Personally, I would like to see the ability to either select a template
or define your own name or an _expression_. My post last week about
DisplayListLinks goes to the heart of the issue. In complex apps you may want to
have those links generated dynamically based upon conditions in your app.
This is affecting me right now in an app I am working on. I may want to go
to one child edit form from a parent list form, or a parent edit form,
etc. The way the list links work right now, they will not accept parameter
extensions, so you really have to code you way around it, and you are
immediately divorced from the IDE, for that page, from that point
on.
I have
found a fix for this issue and passed it along to Adam and David last week, and
they are going to implement some version of it in the next
release.
Jeff
Yeah, that gets back to the message below where I stated:
I should also add that this is a list form, and the links
tab in the ide, the add/view/edit & delete links all say (none available).
I cannot edit these values.
So question is, why are they disabled?
Dan =================== Previous Message Below
===================
Well, there is a Links tab in the right panel when you
select a list control in the IDE. If you set a link to
'disabled' it sets the attribute to "No" in the generated tag for that
link.
Jeff
Makes sense. Thanks for the tip on the "No" for the
attribute when I do not want the links to display. I did not miss this in
the IDE, did I?
Dan =================== Previous Message
Below ===================
If you try to modify the links in the IDE, I
believe the forms have to be created on the disk for the links to be
editable.
Sometimes you need to just create a new module
manually. I don't like the way Plum generates a default directory
for every formset. That is why I don't let Plum auto-generate all
my forms at once. Just manually create an empty module for
the new directory you have for the wizard, and then create new pages in
that module manually as you need them. I have a company directory
in the project I am working on that has forms for the company, office,
employee, and several lookup tables. I have found it is more
beneficial to group these things based upon how security access has
to work. It is easier to control access to all of these with
one group in security 'company' as opposed to 10 different
ones.
As to the add
link, set the attribute value to "No" to disable the
link.
HTH,
Jeff
I should also add that this is a list
form, and the links tab in the ide, the add/view/edit & delete
links all say (none available). I cannot edit these
values.
Dan
----- Original Message -----
Sent: Monday, December 06, 2004
3:35 PM
Subject: [plum]
cf_DisplayListLinks
The plum wizard creates a separate
directory under the admin directory for each table in the database.
I am creating a new module that will be a wizard, and I will be
adding data to several tables. The IDE assumes that my new module is
in the same directory as the database table module, and therefore
the Add,View,Edit and Delete links are wrong.
In the example below, I do not want
them to be able to add another record, so how do I disable the Add
link in the IDE or in code, and how do I correct the path, as I
manually did for the view link be pre-pending
"../tblpage/".
<cf_DisplayListLinks add=""
view="../tblPage/tblPageViewForm.cfm" edit="tblPageEditForm.cfm"
delete="tblPageDeleteForm.cfm">
I guess I am always exploring if
something can be done in the IDE first, and that way, I am becoming
more aware of everything that can be done there.
Dan
|