Home › Forum › Problemi Vari con WP › [HELP] come realizzare una lista/tabella di contenuti
-
AutorePost
-
-
25 Febbraio 2013 alle 7:05 #23888memorinoPartecipante
Stò creando un sito per uno strudio medico ed ho il seguente problema; non riesco a capire come gestire una richiesta del cliente attraverso wp.
Il cliente richiede una pagina “diagnostica” da poter gestire personalmente contenente l’elenco dei medici con le relative prestazioni offerte.
Esempio:
Dott. Caio Bianchi Ecografie
Dott. Sempronio Rossi ortopedia, fisioterapia etc…
L’elenco è abbastanza lungo ed è in continuo aggiornamento.
Inizialmente avevo pensato di creare un tipo di contenuto senza titolo e content ma contenente solo questi elementi:
Titolo (dott, prof, dott.sa, prof.ssa)
Nome
Cognome
Prestazioni (campo multivalore)
In questo modo il cliente può gestire i vari specialisti creando/cancellando e modificando i content type “medici” che poi avrebbe potuto visualizzare attraverso il file archive-medici.php
Questa soluzione presenta tuttavia l’incoveniente che ogni medico corrisponde ad un post/pagine quindi si verrebbero a creare tante pagine del tipo /miosito.com/caio-bianchi/ quanti sono i medici…queste pagine sono inutili e sovrannumeriche a me interessa avere solo una pg con la lista dei medici e delle loro prestazioni che il cliente può gestire tramite il back-end.
Avrei pensato ad una soluzione alternativa…creare una tabella mysql medici (con i campi di cui sopra),farla popolare attraverso il back-end wordpress dal cliente e quindi richiamare i campi della tabella all’interno di una pagina con una query (cosa che sò fare)…ma in questo caso il problema è che non riesco a capire come interfacciare la tabella del db con il back-end del blog…esiste un plug-in che consenta di fare questo?
Avete altre soluzioni alternative?
-
25 Febbraio 2013 alle 7:35 #101523
-
25 Febbraio 2013 alle 10:07 #101527memorinoPartecipante
Grazie…però vorrei evitare l’uso di quel plugin…
-
25 Febbraio 2013 alle 12:23 #101529SteveAglAmministratore del forum
E allora lo devi scrivere tu un plugin come vuoi tu
-
25 Febbraio 2013 alle 12:34 #101530memorinoPartecipante
Pensavo e speravo di poterlo fare senza plugin….
La mia soluzione prevedeva la creazione di un custom content type contents cono solo i seguenti campi(nome, cognome, prestazioni)la cosa che però mi dà fastidio è che in questo modo mi vengono create tante pagine/post quanti sono articoli quindi nel sito ci sarebbero tante pagine che non dovrebbero esserci.
-
25 Febbraio 2013 alle 14:20 #101531SteveAglAmministratore del forum
allora
a) CPT (chissenefrega se sono entri nel db.. anzi meglio… ios tof ancedo siti che hanno 10 15 CPT diversi con blocchi di campi dedicati.. che problema c’è
b) Plugin ha hoc con gestione tabella aggiuntiva (non si capisce il motivo vedi A)
c) Pagina singola fatta a manina e editata da qualcuno con el modifiche aggiunte etc con i dati.
Altre soluzioni eccetto quelle di magia nera non ne esistono.
-
25 Febbraio 2013 alle 15:12 #101534memorinoPartecipante
allora
a) CPT (chissenefrega se sono entri nel db.. anzi meglio… ios tof ancedo siti che hanno 10 15 CPT diversi con blocchi di campi dedicati.. che problema c’è
b) Plugin ha hoc con gestione tabella aggiuntiva (non si capisce il motivo vedi A)
c) Pagina singola fatta a manina e editata da qualcuno con el modifiche aggiunte etc con i dati.
Altre soluzioni eccetto quelle di magia nera non ne esistono.
La soluzione a) è quella che mi torna che mi face…il fatto di non entrare nel db non mi interessa proprio il problema di questa soluzione è che mi crea una pg per ogni dottore e io non voglio che questo accada perchè le informazioni associabili al dottore sono poche..insomma a me serve solo una lista ordinata che il cliente si può aggiornare in completa autonomia, quindi la soluzione C direi che non è fattibile….
-
25 Febbraio 2013 alle 16:01 #101544SteveAglAmministratore del forum
continuo a non capire cosa tu voglia allora? Le soluzioni sono quelle… altre non ce ne sono… o non ti spieghi o manco tu hai le idee chiare sta storia della pagina che ha poche info e quindi sarebbe inutile.. è assolutamente inutile visto che io ho CPT (NON PAGINE) con solo un titolo 3 campi personalizzati e ne ho qualche centinaio.. e continuo a non vedere il problema… ma srò io che dopo 25 anni di informatica la faccio troppo facile.. sai l’esperienza conta pochissimo come mi insegni.. mah!
-
25 Febbraio 2013 alle 18:32 #101575memorinoPartecipante
Forse mi sono spiegato poco bene, il mio problema nell’implemetare la cosa con il cct é che vorrei evitare che le persone accedessero alle pagine del singono content type /miosito/mario-bianchi/ … Queste pagine non ci devono essere e non devono venire indicizzate dal motore di ricerca, deve essere raggiungibile e visibile solo la pg con la lista dei content type dottori
-
25 Febbraio 2013 alle 18:56 #101578SteveAglAmministratore del forum
Quello lo si blocca facilmente in vari modi e non si fanno indicizzare escludendole da robot.txt oltre al fatto he se non sono linkate da nessuna parte i motori e gli utenti NON le trovano… nell’esempio di cui sopra dei siti con 10 15 CPT alcuni di questi non sono visibili da nessuna parte ma usati solo ad uso interno o per generare altre pagine.. ergo sempre nessun problema.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.