Jump to content

This topic is 7641 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

I am trying to put 2 portals on the web page using CDML.

At first, both of them were not displayed when I viewed the page in IE. The page was designed so that portal records will appear in a table.

Then I removed the table and one of the portals appeared on the page.

I did the same with another one - it didn't work.

I double-checked the field names and relationships - still no results.

I am completely lost.

Does anybody know what could be the problem??

Thank you

Yul

Posted

I was having exactly the same problem just yesterday! I don't know why, however. But I eventually deleted my entire table and started over by simpling placing the portal on the web page, but not in a table (just to see if I could get it to show up) and that worked. Then I started to build the table around that, adding the basic <table> structure then more and more rows. If something didn't work I would undo it and try something different. I'm at home right now and don't have my code with me :-( but when I get to work I will post what I came up with.

Posted

Hi a couple of brief observations:

- whenever there's a related file involved you must refer to the layout in the url/form/inline action that calls the page or it doesn't work.

- the portal and its fields has to be on the layout you're calling

These have always worked for me:

portal as part of a search return list:

[FMP-RECORD]

[FMP-FIELD: Fieldname]

[FMP-PORTAL: relationship_name]

<TABLE BORDER=1>

<TR>

<TD>

<P>[FMP-FIELD: relationship_name::fieldname1]</P>

</TD>

<TD>

<P>[FMP-FIELD: relationship_name::fieldname2]</P>

</TD>

</TR>

</TABLE>

[/FMP-PORTAL]

[/FMP-RECORD]

....or on a record detail page

[FMP-PORTAL: relationship_name]

<TABLE BORDER=1>

<TR>

<TD>

<P>[FMP-FIELD: relationship_name::fieldname1]</P>

</TD>

<TD>

<P>[FMP-FIELD: relationship_name::fieldname2]</P>

</TD>

</TR>

</TABLE>

[/FMP-PORTAL]

.the "portal" tags need to be outside the table in both cases.

regards, jeff

Posted

Jeff Spall said:

.the "portal" tags need to be outside the table in both cases.

Here's my code. Note that the "portal" tags are inside the table.

<table border=0 cellpadding=0 cellspacing=10>

[FMP-Portal: addropFiles]

<tr>

<td valign=top rowspan=3 colspan=1>

<font face="Courier" size=1 color="#99CCCC">

[ [FMP-CurrentPortalRowNumber] ]

</font>

</td>

<td valign=bottom colspan=2>

<font face="Courier" size=1>

<b>[FMP-Field: addropFiles::UPLOAD_NAME]</b>

</font>

</td>

</tr>

<tr>

<td valign=bottom colspan=2>

<font face="Courier" size=1>

<b>Client Name:</b> [FMP-Field: addropFiles::CLIENT_NAME]

</font>

</td>

</tr>

<tr>

<td valign=bottom>

<font face="Courier" size=1>

<b>Uploaded:</b> [FMP-Field: addropFiles::UPLOAD_DATE]

</font>

</td>

<td valign=bottom>

<font face="Courier" size=1>

<b>Sent to:</b> [FMP-Field: addropFiles::PICKUP_SITE_ID]

</font>

</td>

</tr>

[/FMP-Portal]

</table>

Posted

Hi, I think it should be:

[FMP-PORTAL: addropFiles]

<TABLE BORDER=0 CELLSPACING=10 CELLPADDING=0>

<TR>

<TD VALIGN=top ROWSPAN=3>

<P><FONT SIZE="-2" FACE="Courier" COLOR="#99CCCC">[FMP-CurrentPortalRowNumber]

</FONT></P>

</TD>

<TD VALIGN=bottom COLSPAN=2>

<P><FONT SIZE="-2" FACE="Courier"><B>[FMP-FIELD: addropFiles::UPLOAD_NAME]</B>

</FONT></P>

</TD>

</TR>

<TR><TD VALIGN=bottom COLSPAN=2>

<P><FONT SIZE="-2" FACE="Courier"><B>Client Name:</B>

[FMP-FIELD: addropFiles::CLIENT_NAME] </FONT></P>

</TD>

</TR>

<TR><TD VALIGN=bottom>

<P><FONT SIZE="-2" FACE="Courier"><B>Uploaded:</B>

[FMP-FIELD: addropFiles::UPLOAD_DATE] </FONT></P>

</TD>

<TD VALIGN=bottom>

<P><FONT SIZE="-2" FACE="Courier"><B>Sent to:</B>

[FMP-FIELD: addropFiles::PICKUP_SITE_ID] </FONT></P>

</TD>

</TR>

</TABLE>

[/FMP-PORTAL]

...just moving the Portal tags and taking out an extra bracket from the current row tag. This lets it draw extra table rows for each entry.

regards, jeff

Posted

My point was that my code works with the portal tags inside the table tag, and the extra square brackets were there for design, not function, so the portal row numbers would be displayed like this [ 1 ]. So my code doesn't need any changing whatsoever smile.gif

I posted it as an example of code that does work for someone who was having trouble getting theirs to do the same.

Posted

Thank you all for your help. I could figure out how to do one of the portals, but still have no luck with the second one even though I am using the same structure...

This topic is 7641 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.