Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Processing document (title and text)Processing document (title and text)
Previous
 
Next
New Post
6/18/2013 7:47 AM
 
Hi,
If I want to hide the contained a document (of each title), and click to bring up the title (or read more) how can I do?
for example:

Document:
Title1: the first text speaks of ect ... (read more)
Titre2: the first text speaks of ect ... (read more)
Title3: the first text speaks of ect ... (read more)

and click the "Read more" I want to have:
Title1: the first text speaks of ect ... (read more)
               The details of the first text (hide again) to click on hide detail must hide
                bla bla bla
Titre2: the first text speaks of ect ... (read more)
Title3: the first text speaks of ect ... (read more)

is there a module to do this?
how else can I do?
 
New Post
6/19/2013 12:36 PM
 

It's ok, i found it by programming ...

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title>Sans Titre</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="HAPedit 3.1">
<script language="JavaScript">
function visible(thingId,moreID)
{
       var targetElement,targetElement1;

       // Salam");
       targetElement = document.getElementById(thingId) ;
       targetElement1 = document.getElementById(moreID) ;

       if (targetElement.style.display == "none" && targetElement1.innerHTML  == "(read more3)" )
       {
               targetElement.style.display = "" ; //montrer le tableau
               targetElement1.innerHTML  = "" ;
       }
       else  {

              targetElement.style.display = "none" ;
            }
       //----------------------------------------------------


}

function masquer(masqID,thingId0,readID0)
{
     var targetElement2,targetElement0,targetElement3;

     targetElement2 = document.getElementById(masqID) ;
     targetElement0 = document.getElementById(thingId0) ;
     targetElement3 = document.getElementById(readID0) ;

      if (targetElement0.style.display == "" && targetElement2.innerHTML  == "(Masquer3)" && targetElement3.innerHTML=="")
       {
            targetElement0.style.display = "none" ;
            targetElement3.innerHTML = "(read more3)";
       }
}

</script>

</head>
<body bgcolor="#FFFFFF">

<hr />
HAPedit 3.1.11.111 (June 2013 10:58:57 AM)

<br />
<br />

Titre 1 :   aaaaaaaaaaa (read more1)  <br />

<table id="t1" border="1" width="100px" height="100px">
<tr>
<td>aaa
&#160;
      (Masquer)
</td>
</tr>
</table>
    <br />
Titre 2 :   bbbbbbbbbbb (read more2)     <br />

      <table id="t2" width="100px" height="100px" border="1" cols="1" cellpadding="1">
              <tr>
<td>bbb
&#160;
      (Masquer)
</td>
</tr>
      </table>
      
Titre 3 :   ccccccccccc <a href="" onclick=" visible('t3','r3'); return false;"><span id="r3">(read more3)</span></a>      <br />

   <table id="t3" style="display:none" width="100px" height="100px" border="1" cols="1" cellpadding="1">
              <tr>
<td>ccc
&#160;
     <a href="" onclick=" masquer('m3','t3','r3'); return false;"> <span id="m3">(Masquer3)</span> </a>
</td>
</tr>
      </table>

</body>
</html> 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Processing document (title and text)Processing document (title and text)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out