Multi-pages ajouter l'id de l'article dans l'url
Bonjour,
Je travaille sur une application qui utilise les API jQuery mobile. Je veux personnaliser mes urls en ajoutant les identifiants des articles dans url pour pouvoir les utiliser par la suite mais je n'ai aucune idée de comment le faire.
Par exemple, j'ai mon url de la manière suivante :
Code:
1 2 3
|
index.php?module=news&action=read#&ui-page=newsUpdate-3 |
Je voudrais ajouter mon id news_ref :
Code:
1 2
|
index.php?module=news&action=read#&ui-page=newsUpdate-3&news_ref=100 |
Voici ma page html :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>News</title>
<script src="views/android/js/jquery.min.js"></script>
<script src="views/android/js/apps.js"></script>
<script src="views/android/js/jquery.mobile-1.0.1.min.js"></script>
<link rel="stylesheet" href="views/android/css/jquery.mobile-1.0.1.min.css" />
<link rel="stylesheet" href="views/android/css/style.css" />
</head>
<body>
<div data-role="page" id="page1">
<div data-theme="a" data-role="header">
<div align='right' >
<a href="../index.php" onclick="self.open('../index.php');document.location.reload();return false();">العربية</a>
</div>
<h3>
News
</h3>
</div>
<div data-role="content">
<ul data-role="listview" data-divider-theme="b" data-inset="true" class="custom_news" id="newsUpdate">
<li data-role="list-divider" role="heading">
A la Une
</li>
<!-- BEGIN post -->
<li data-theme="c">
<a href="#">
<img src="resources/50x50/{news_thumbnail}" class="ui_li_icon"/>
{news_title}
</a>
<ul class="details_services">
<br/>
<strong>{news_title}</strong>
<br/>
{news_body}
</ul>
</li>
<!-- END post -->
</ul>
<div>
<a href="#" data-transition="fade" class="plusbutton" id="moreupdatenews">
Plus...
</a>
</div>
<ul data-role="listview" data-divider-theme="b" data-inset="true" class="custom_news" id="mostreadnews">
<li data-role="list-divider" role="heading">
Les plus lus
</li>
<!-- BEGIN postmost -->
<li data-theme="c">
<a href="#">
<img src="resources/50x50/{news_thumbnail}" class="ui_li_icon"/>
{news_title}
</a>
<ul class="details_services">
<br/>
<strong>{news_title}</strong>
<br/>
{news_body}
</ul>
</li>
<!-- END postmost -->
</ul>
<div>
<a href="#" data-transition="slide" class="plusbutton" id="moremostreadnews">
Plus...
</a>
</div>
<br>
<form url="" action="POST">
<input id="searc-basic" value="Recherche..." data-icon="search" />
</form>
</div>
</div>
</body>
</html> |
Merci d'avance.