To use this website completely, it is necessary to store cookies on your computer.
 

* Navigator

Expand - Collapse

* Statistic


  • *Total Posts: 16431
  • *Total Topics: 2522
  • *Online Today: 10
  • *Most Online: 292
(12. Nov 2016, 09:37:31)
  • *Users: 0
  • *Guests: 0
  • *Spiders: 1
  • *Total: 1

  • *Google

* Calendar

Mo
Tu
We
Th
Fr
Sa
Su
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
Birthdays
Apr 23: klein.michael (41)
Apr 24: Poet1960 (57)

[Free] Search Single Pages made in PortaMX - How?

Started by CBG, 08. Jun 2013, 00:04:22

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

CBG

08. Jun 2013, 00:04:22
Hi,

I would like to be able to create some Single pages in PortaMX, which I can do.
But I would like to create a search for it to search Single Pages, for words.

I am unsure where to search for it to be in Single Pages and how to do the PHP code and display it.

Thanks

feline

#1
08. Jun 2013, 01:13:05
Search for what? text in the content?
Well .. that is not simple and very database intensive.
Globally steps
1 .. get all content from the single page blocks
2 .. convert bbc/htm/php or what ever the content is in
3 .. find the search phrase
4 .. show the matched pages
Many are stubborn in relation to the path, a few in relation to the target.

CBG

#2
08. Jun 2013, 11:25:21
Hi,

I would was thinking more of just the title of the page, but it a set way

Let say I have 2 pages for a game which is called Black Ops 2 for example

I would have the following titles

Black Ops 2
Videos - Black Ops 2

I would want it to display just the first Black Ops 2 and not the Videos - Black Ops 2 link.

So let say I get the PHP code to search MySQL etc...

Do I need to make a PHP block and then put the block on the area I want?

The other question I have if I put it above the welcome block on the frontpage, where would the results display it it be in the same place?

Thanks